nc-https: proto logic was inverted fix

Signed-off-by: nachoparker <nacho@ownyourbits.com>
This commit is contained in:
nachoparker 2021-09-27 18:31:57 -06:00
parent b067844550
commit 2be666b1f5
2 changed files with 8 additions and 2 deletions

View File

@ -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

View File

@ -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