Fix wo-kernel service start

This commit is contained in:
VirtuBox
2020-05-12 01:42:04 +02:00
parent 0f5fd0a349
commit 596e7bf03b
3 changed files with 12 additions and 1 deletions

View File

@@ -8,6 +8,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
### v3.9.x - [Unreleased] ### v3.9.x - [Unreleased]
### v3.12.0 - 2020-05-11
#### Added #### Added
- Set opcache.preload_user for PHP 7.4 - Set opcache.preload_user for PHP 7.4
@@ -31,6 +33,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- WordOps installation failure with pip - WordOps installation failure with pip
- Installation on raspberry pi 4 - Installation on raspberry pi 4
- Fail2ban configuration when Nginx is not installed - Fail2ban configuration when Nginx is not installed
- Wo-kernel systemd service start failure
### v3.11.4 - 2020-01-17 ### v3.11.4 - 2020-01-17

View File

@@ -9,7 +9,7 @@
# ------------------------------------------------------------------------- # -------------------------------------------------------------------------
# wget -qO wo wops.cc && sudo -E bash wo # wget -qO wo wops.cc && sudo -E bash wo
# ------------------------------------------------------------------------- # -------------------------------------------------------------------------
# Version 3.12.0 - 2020-04-24 # Version 3.12.0 - 2020-05-12
# ------------------------------------------------------------------------- # -------------------------------------------------------------------------
# CONTENTS # CONTENTS
@@ -644,6 +644,12 @@ wo_woconf() {
fi fi
} }
wo_fix_kernel() {
if [ -f /opt/wo-kernel.sh ]; then
chmod +x /opt/wo-kernel.sh
fi
}
wo_init() { wo_init() {
### ###
@@ -718,6 +724,7 @@ else
if [ -x /usr/local/bin/wo ]; then if [ -x /usr/local/bin/wo ]; then
_run wo_clean _run wo_clean
_run wo_woconf _run wo_woconf
_run wo_fix_kernel
# 2 - Migration from EEv3 # 2 - Migration from EEv3
else else
if [ -x /usr/local/bin/ee ]; then if [ -x /usr/local/bin/ee ]; then

View File

@@ -1709,6 +1709,7 @@ def pre_stack(self):
if not os.path.isfile('/opt/wo-kernel.sh'): if not os.path.isfile('/opt/wo-kernel.sh'):
WOTemplate.deploy(self, '/opt/wo-kernel.sh', WOTemplate.deploy(self, '/opt/wo-kernel.sh',
'wo-kernel-script.mustache', data) 'wo-kernel-script.mustache', data)
WOFileUtils.chmod(self, '/opt/wo-kernel.sh', 0o700)
if not os.path.isfile('/lib/systemd/system/wo-kernel.service'): if not os.path.isfile('/lib/systemd/system/wo-kernel.service'):
WOTemplate.deploy( WOTemplate.deploy(
self, '/lib/systemd/system/wo-kernel.service', self, '/lib/systemd/system/wo-kernel.service',