diff --git a/bin/ncp/CONFIG/nc-httpsonly.sh b/bin/ncp/CONFIG/nc-httpsonly.sh index a70bac03c..147dc0aaa 100644 --- a/bin/ncp/CONFIG/nc-httpsonly.sh +++ b/bin/ncp/CONFIG/nc-httpsonly.sh @@ -12,7 +12,11 @@ configure() { [[ -f /.ncp-image ]] && return 0 - [[ $ACTIVE == "no" ]] && local opt=Off proto=http || local opt=On proto=https + if [[ $ACTIVE == "no" ]]; then + local opt=Off proto=https + else + local opt=On proto=http + fi sed -i "s|RewriteEngine .*|RewriteEngine $opt|" /etc/apache2/sites-available/000-default.conf ncc config:system:set overwriteprotocol --value="${proto}" apachectl -k graceful diff --git a/changelog.md b/changelog.md index db575ae62..7e60de1fa 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,7 @@ -[v1.39.15](https://github.com/nextcloud/nextcloudpi/commit/3e408f1) (2021-09-27) add get_ip function +[v1.39.16](https://github.com/nextcloud/nextcloudpi/commit/e6ebc3d) (2021-09-27) nc-https: proto logic was inverted fix + +[v1.39.15](https://github.com/nextcloud/nextcloudpi/commit/b067844) (2021-09-27) add get_ip function [v1.39.14](https://github.com/nextcloud/nextcloudpi/commit/6ad96ed) (2021-09-25) nc-https:only fix infinite redirects behind proxy