Browse Source
[enh] rename default into auto
fix-backup-core-only
ljf (zamentur)
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
scripts/backup
|
|
@ -31,8 +31,8 @@ db_name=$(ynh_app_setting_get $app db_name) |
|
|
# APPLY BACKUP CORE ONLY POLICY |
|
|
# APPLY BACKUP CORE ONLY POLICY |
|
|
#================================================= |
|
|
#================================================= |
|
|
# Apply policy only if we are not in upgrade mode |
|
|
# 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=${BACKUP_CORE_ONLY:-auto} |
|
|
|
|
|
if [ "$BACKUP_CORE_ONLY" == "auto" ] ; then |
|
|
BACKUP_CORE_ONLY=$(ynh_app_setting_get $app backup_core_only) |
|
|
BACKUP_CORE_ONLY=$(ynh_app_setting_get $app backup_core_only) |
|
|
BACKUP_CORE_ONLY=${BACKUP_CORE_ONLY:-0} |
|
|
BACKUP_CORE_ONLY=${BACKUP_CORE_ONLY:-0} |
|
|
fi |
|
|
fi |
|
|
|