mirror of
https://github.com/nextcloud/nextcloudpi.git
synced 2026-01-10 15:12:01 -03:30
nc-https: proto logic was inverted fix
Signed-off-by: nachoparker <nacho@ownyourbits.com>
This commit is contained in:
parent
b067844550
commit
2be666b1f5
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user