1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/lufi_ynh.git synced 2024-09-03 19:36:28 +02:00

[fix] Bugs upgrade & good exit .fonctions

This commit is contained in:
magikcypress 2017-04-19 13:15:41 +02:00
parent a99318d1c7
commit 463baa34e7
2 changed files with 2 additions and 2 deletions

View file

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

View file

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