|
|
@ -3,11 +3,6 @@ |
|
|
#================================================= |
|
|
#================================================= |
|
|
# GENERIC START |
|
|
# GENERIC START |
|
|
#================================================= |
|
|
#================================================= |
|
|
# MANAGE SCRIPT FAILURE |
|
|
|
|
|
#================================================= |
|
|
|
|
|
|
|
|
|
|
|
# Exit on command errors and treat access to unset variables as an error |
|
|
|
|
|
set -eu |
|
|
|
|
|
|
|
|
|
|
|
#================================================= |
|
|
#================================================= |
|
|
# IMPORT GENERIC HELPERS |
|
|
# IMPORT GENERIC HELPERS |
|
|
@ -21,6 +16,13 @@ fi |
|
|
source _common.sh |
|
|
source _common.sh |
|
|
source /usr/share/yunohost/helpers |
|
|
source /usr/share/yunohost/helpers |
|
|
|
|
|
|
|
|
|
|
|
#================================================= |
|
|
|
|
|
# MANAGE SCRIPT FAILURE |
|
|
|
|
|
#================================================= |
|
|
|
|
|
|
|
|
|
|
|
# Exit if an error occurs during the execution of the script |
|
|
|
|
|
ynh_abort_if_errors |
|
|
|
|
|
|
|
|
#================================================= |
|
|
#================================================= |
|
|
# LOAD SETTINGS |
|
|
# LOAD SETTINGS |
|
|
#================================================= |
|
|
#================================================= |
|
|
@ -82,5 +84,5 @@ if [ -z $backup_core_only ] |
|
|
then |
|
|
then |
|
|
ynh_backup "/home/yunohost.app/${app}/data" |
|
|
ynh_backup "/home/yunohost.app/${app}/data" |
|
|
else |
|
|
else |
|
|
echo "Data dir will not saved, because backup_core_only is set." >&2 |
|
|
|
|
|
|
|
|
echo "Data dir will not be saved, because backup_core_only is set." >&2 |
|
|
fi |
|
|
fi |