From 50cd1ca6e5d8ed2da62dad6830a0db5138708dfe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Tue, 19 Mar 2024 22:02:20 +0100 Subject: [PATCH] Fix _common.sh --- scripts/_common.sh | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index fb916bc..4d5f303 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -56,14 +56,6 @@ check_memory_requirements_upgrade() { } ynh_maintenance_mode_ON () { - # Load value of $path and $domain from the config if their not set - if [ -z $path ]; then -#REMOVEME? path=$(ynh_app_setting_get $app path) - fi - if [ -z $domain ]; then -#REMOVEME? domain=$(ynh_app_setting_get $app domain) - fi - # Create an html to serve as maintenance notice echo " @@ -110,14 +102,6 @@ include conf.d/yunohost_panel.conf.inc; } ynh_maintenance_mode_OFF () { - # Load value of $path and $domain from the config if their not set - if [ -z $path ]; then -#REMOVEME? path=$(ynh_app_setting_get $app path) - fi - if [ -z $domain ]; then -#REMOVEME? domain=$(ynh_app_setting_get $app domain) - fi - # Rewrite the nginx config file to redirect from ${path}_maintenance to the real url of the app. echo "rewrite ^${path}_maintenance/(.*)$ ${path}/\$1 redirect;" > "/etc/nginx/conf.d/$domain.d/maintenance.$app.conf" systemctl reload nginx