[enh] Tranfert backup_core_only to BACKUP_CORE_ONLY

This commit is contained in:
Maniack Crudelis 2017-12-22 19:01:09 +01:00 committed by GitHub
parent 542528ab05
commit 421994a3ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -77,7 +77,7 @@ ynh_backup_before_upgrade () {
fi
# Create backup
sudo yunohost backup create --ignore-system --apps $app --name $app_bck-pre-upgrade$backup_number
sudo BACKUP_CORE_ONLY=1 yunohost backup create --ignore-system --apps $app --name $app_bck-pre-upgrade$backup_number
if [ "$?" -eq 0 ]
then
# If the backup succeeded, remove the previous backup