Browse Source

[fix] backup_core_only settings doesn't work

fix-backup-core-only
ljf (zamentur) 7 years ago
committed by GitHub
parent
commit
b641cea407
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      scripts/backup

10
scripts/backup

@ -27,6 +27,16 @@ final_path=$(ynh_app_setting_get $app final_path)
domain=$(ynh_app_setting_get $app domain)
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
#=================================================

Loading…
Cancel
Save