diff --git a/CHANGELOG.md b/CHANGELOG.md index 12876bf..2134222 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/install b/install index c46eb42..438411d 100755 --- a/install +++ b/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 diff --git a/wo/cli/plugins/site_functions.py b/wo/cli/plugins/site_functions.py index 1ecec76..201d37e 100644 --- a/wo/cli/plugins/site_functions.py +++ b/wo/cli/plugins/site_functions.py @@ -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")