1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/nextcloud_ynh.git synced 2024-09-03 19:55:57 +02:00

[fix] backup_core_only settings doesn't work

This commit is contained in:
ljf (zamentur) 2019-04-15 14:56:06 +02:00 committed by GitHub
parent 36f10cbc57
commit b641cea407
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,6 +27,16 @@ final_path=$(ynh_app_setting_get $app final_path)
domain=$(ynh_app_setting_get $app domain) domain=$(ynh_app_setting_get $app domain)
db_name=$(ynh_app_setting_get $app db_name) db_name=$(ynh_app_setting_get $app db_name)
#=================================================
# APPLY BACKUP CORE ONLY POLICY
#=================================================
# Apply policy only if we are not in upgrade mode
BACKUP_CORE_ONLY=${BACKUP_CORE_ONLY:-default}
if [ "$BACKUP_CORE_ONLY" == "default" ] ; then
BACKUP_CORE_ONLY=$(ynh_app_setting_get $app backup_core_only)
BACKUP_CORE_ONLY=${BACKUP_CORE_ONLY:-0}
fi
#================================================= #=================================================
# STANDARD BACKUP STEPS # STANDARD BACKUP STEPS
#================================================= #=================================================