diff --git a/scripts/.fonctions b/scripts/.fonctions index d04f9e3..2fa2017 100644 --- a/scripts/.fonctions +++ b/scripts/.fonctions @@ -221,7 +221,7 @@ BACKUP_BEFORE_UPGRADE () { # Backup the current version of the app, restore it i ynh_exit_properly () { exit_code=$? if [ "$exit_code" -eq 0 ]; then - exit 0 # Exit without error if the script ended correctly + ynh_die # Exit without error if the script ended correctly fi trap '' EXIT # Ignore new exit signals diff --git a/scripts/upgrade b/scripts/upgrade index c25a5a7..8e65dfe 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -120,7 +120,7 @@ popd # Revient au dossier courant avant pushd # SECURING FILES AND DIRECTORIES #================================================= -sudo chown -R $app: $final_path +sudo chown -R root: $final_path #================================================= # RESTART LUFI