Fix installer version check
This commit is contained in:
@@ -8,6 +8,15 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|||||||
|
|
||||||
### v3.9.x - [Unreleased]
|
### v3.9.x - [Unreleased]
|
||||||
|
|
||||||
|
#### Changed
|
||||||
|
|
||||||
|
- WordPress default permalinks structure from `/%year%/%monthnum%/%day%/%postname%/` -> `/%postname%/`
|
||||||
|
|
||||||
|
#### Fixed
|
||||||
|
|
||||||
|
- Error with `wo stack upgrade --nginx`
|
||||||
|
- Install/update script version check
|
||||||
|
|
||||||
### v3.9.8.6 - 2019-08-30
|
### v3.9.8.6 - 2019-08-30
|
||||||
|
|
||||||
#### Added
|
#### Added
|
||||||
|
|||||||
10
install
10
install
@@ -811,11 +811,11 @@ if [ "$wo_purge" = "y" ]; then
|
|||||||
else
|
else
|
||||||
# 1 - WO already installed
|
# 1 - WO already installed
|
||||||
if [ -x /usr/local/bin/wo ]; then
|
if [ -x /usr/local/bin/wo ]; then
|
||||||
if {
|
if [ -z "$wo_force_install" ]; then
|
||||||
wo -v 2>&1 | grep -q "$wo_version_new"
|
if { wo -v 2>&1 | grep -q "$wo_version_new"; }; then
|
||||||
} && [ -z "$wo_force_install" ]; then
|
wo_lib_error "You already have WordOps $wo_version_new"
|
||||||
wo_lib_error "You already have WordOps $wo_version_new"
|
exit 1
|
||||||
exit 1
|
fi
|
||||||
fi
|
fi
|
||||||
wo_lib_echo "Installing wo dependencies " | tee -ai $wo_install_log
|
wo_lib_echo "Installing wo dependencies " | tee -ai $wo_install_log
|
||||||
wo_install_dep | tee -ai $wo_install_log
|
wo_install_dep | tee -ai $wo_install_log
|
||||||
|
|||||||
@@ -519,7 +519,7 @@ def setupwordpress(self, data, vhostonly=False):
|
|||||||
WOShellExec.cmd_exec(self, " {0} --allow-root "
|
WOShellExec.cmd_exec(self, " {0} --allow-root "
|
||||||
.format(WOVariables.wo_wpcli_path) +
|
.format(WOVariables.wo_wpcli_path) +
|
||||||
"rewrite structure "
|
"rewrite structure "
|
||||||
"/%year%/%monthnum%/%day%/%postname%/")
|
"/%postname%/")
|
||||||
except CommandExecutionError as e:
|
except CommandExecutionError as e:
|
||||||
Log.debug(self, str(e))
|
Log.debug(self, str(e))
|
||||||
raise SiteError("Update wordpress permalinks failed")
|
raise SiteError("Update wordpress permalinks failed")
|
||||||
|
|||||||
Reference in New Issue
Block a user