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:
parent
a99318d1c7
commit
463baa34e7
2 changed files with 2 additions and 2 deletions
|
@ -221,7 +221,7 @@ BACKUP_BEFORE_UPGRADE () { # Backup the current version of the app, restore it i
|
||||||
ynh_exit_properly () {
|
ynh_exit_properly () {
|
||||||
exit_code=$?
|
exit_code=$?
|
||||||
if [ "$exit_code" -eq 0 ]; then
|
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
|
fi
|
||||||
|
|
||||||
trap '' EXIT # Ignore new exit signals
|
trap '' EXIT # Ignore new exit signals
|
||||||
|
|
|
@ -120,7 +120,7 @@ popd # Revient au dossier courant avant pushd
|
||||||
# SECURING FILES AND DIRECTORIES
|
# SECURING FILES AND DIRECTORIES
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
sudo chown -R $app: $final_path
|
sudo chown -R root: $final_path
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# RESTART LUFI
|
# RESTART LUFI
|
||||||
|
|
Loading…
Add table
Reference in a new issue