From d7f1206bf6b114ba14dbbe9a43ad046d354b209b Mon Sep 17 00:00:00 2001 From: eric_G <46165813+ericgaspar@users.noreply.github.com> Date: Tue, 31 Oct 2023 15:47:53 +0100 Subject: [PATCH] Update scripts/config Co-authored-by: tituspijean --- scripts/config | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/config b/scripts/config index a41e996..19ec7ee 100644 --- a/scripts/config +++ b/scripts/config @@ -62,8 +62,7 @@ get__free_footprint() { set__maintenance_mode() { if [ "$maintenance_mode" -eq "1" ]; then # If maintenance_mode was set to 1, enable maintenance mode - (cd "$install_dir" && ynh_exec_as "$app" \ - echo "Site under maintenance." > .maintenance) + ynh_exec_as "$app" echo "Site under maintenance." > $install_dir/.maintenance ynh_print_info "Maintenance mode enabled" elif [ "$maintenance_mode" -eq "0" ]; then # If maintenance_mode was set to 0, disable maintenance mode