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]
|
||||
|
||||
#### 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
|
||||
|
||||
#### Added
|
||||
|
||||
10
install
10
install
@@ -811,11 +811,11 @@ if [ "$wo_purge" = "y" ]; then
|
||||
else
|
||||
# 1 - WO already installed
|
||||
if [ -x /usr/local/bin/wo ]; then
|
||||
if {
|
||||
wo -v 2>&1 | grep -q "$wo_version_new"
|
||||
} && [ -z "$wo_force_install" ]; then
|
||||
wo_lib_error "You already have WordOps $wo_version_new"
|
||||
exit 1
|
||||
if [ -z "$wo_force_install" ]; then
|
||||
if { wo -v 2>&1 | grep -q "$wo_version_new"; }; then
|
||||
wo_lib_error "You already have WordOps $wo_version_new"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
wo_lib_echo "Installing wo dependencies " | 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 "
|
||||
.format(WOVariables.wo_wpcli_path) +
|
||||
"rewrite structure "
|
||||
"/%year%/%monthnum%/%day%/%postname%/")
|
||||
"/%postname%/")
|
||||
except CommandExecutionError as e:
|
||||
Log.debug(self, str(e))
|
||||
raise SiteError("Update wordpress permalinks failed")
|
||||
|
||||
Reference in New Issue
Block a user