Skip to content

Commit

Permalink
nc-prettyURL: make sure URL is correct
Browse files Browse the repository at this point in the history
  • Loading branch information
nachoparker committed Oct 2, 2018
1 parent 6aa9dfd commit 6324949
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 4 additions & 0 deletions etc/ncp-config.d/nc-prettyURL.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6324949

Please sign in to comment.