diff options
author | nachoparker <nacho@ownyourbits.com> | 2018-10-02 16:18:35 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2018-10-02 16:19:00 +0300 |
commit | 632494911aede83beafb0a7a54f5824a11e11d57 (patch) | |
tree | 401e15af577766785038868c26e2188e81608e85 | |
parent | 6aa9dfd21f6362a82037202b11a9edbf7f56a572 (diff) |
nc-prettyURL: make sure URL is correctv0.62.2
-rw-r--r-- | changelog.md | 2 | ||||
-rw-r--r-- | etc/ncp-config.d/nc-prettyURL.sh | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/changelog.md b/changelog.md index 78ea942e..7b09636a 100644 --- a/changelog.md +++ b/changelog.md @@ -1,4 +1,6 @@ +[v0.62.2](https://github.com/nextcloud/nextcloudpi/commit/2669ba4) (2018-10-02) nc-prettyURL: make sure URL is correct + [v0.62.1 ](https://github.com/nextcloud/nextcloudpi/commit/4f20b71) (2018-09-30) redis: change eviction policy [v0.62.0 ](https://github.com/nextcloud/nextcloudpi/commit/4bce1bb) (2018-09-26) upgrade to PHP7.2 diff --git a/etc/ncp-config.d/nc-prettyURL.sh b/etc/ncp-config.d/nc-prettyURL.sh index 14836913..83b6b726 100644 --- a/etc/ncp-config.d/nc-prettyURL.sh +++ b/etc/ncp-config.d/nc-prettyURL.sh @@ -18,6 +18,10 @@ install() { :; } configure() { + # make sure overwrite.cli.url end with a '/' + local URL="$(ncc config:system:get overwrite.cli.url)" + [[ "${URL: -1}" != "/" ]] && ncc config:system:set overwrite.cli.url --value="${URL}/" + [[ $ACTIVE_ != "yes" ]] && { sudo -u www-data php "$OCC" config:system:set htaccess.RewriteBase --value="" sudo -u www-data php "$OCC" maintenance:update:htaccess |