Fix wo-kernel service start
This commit is contained in:
@@ -8,6 +8,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||
|
||||
### v3.9.x - [Unreleased]
|
||||
|
||||
### v3.12.0 - 2020-05-11
|
||||
|
||||
#### Added
|
||||
|
||||
- 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
|
||||
- Installation on raspberry pi 4
|
||||
- Fail2ban configuration when Nginx is not installed
|
||||
- Wo-kernel systemd service start failure
|
||||
|
||||
### v3.11.4 - 2020-01-17
|
||||
|
||||
|
||||
9
install
9
install
@@ -9,7 +9,7 @@
|
||||
# -------------------------------------------------------------------------
|
||||
# wget -qO wo wops.cc && sudo -E bash wo
|
||||
# -------------------------------------------------------------------------
|
||||
# Version 3.12.0 - 2020-04-24
|
||||
# Version 3.12.0 - 2020-05-12
|
||||
# -------------------------------------------------------------------------
|
||||
|
||||
# CONTENTS
|
||||
@@ -644,6 +644,12 @@ wo_woconf() {
|
||||
fi
|
||||
}
|
||||
|
||||
wo_fix_kernel() {
|
||||
if [ -f /opt/wo-kernel.sh ]; then
|
||||
chmod +x /opt/wo-kernel.sh
|
||||
fi
|
||||
}
|
||||
|
||||
wo_init() {
|
||||
|
||||
###
|
||||
@@ -718,6 +724,7 @@ else
|
||||
if [ -x /usr/local/bin/wo ]; then
|
||||
_run wo_clean
|
||||
_run wo_woconf
|
||||
_run wo_fix_kernel
|
||||
# 2 - Migration from EEv3
|
||||
else
|
||||
if [ -x /usr/local/bin/ee ]; then
|
||||
|
||||
@@ -1709,6 +1709,7 @@ def pre_stack(self):
|
||||
if not os.path.isfile('/opt/wo-kernel.sh'):
|
||||
WOTemplate.deploy(self, '/opt/wo-kernel.sh',
|
||||
'wo-kernel-script.mustache', data)
|
||||
WOFileUtils.chmod(self, '/opt/wo-kernel.sh', 0o700)
|
||||
if not os.path.isfile('/lib/systemd/system/wo-kernel.service'):
|
||||
WOTemplate.deploy(
|
||||
self, '/lib/systemd/system/wo-kernel.service',
|
||||
|
||||
Reference in New Issue
Block a user