1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/transmission_ynh.git synced 2024-09-04 01:46:12 +02:00

various fixes

This commit is contained in:
Gofannon 2019-04-22 01:01:44 +02:00
parent bad14772bb
commit c752463b8f
2 changed files with 3 additions and 3 deletions

View file

@ -56,6 +56,6 @@ ynh_backup "/var/lib/transmission-daemon"
CHECK_SIZE "/home/yunohost.transmission"
# The "--is big" parameter indicates that the file/directory requires "a lot of disk space"
# It won't be backed up before 'upgrade' or while doing a 'backup' with:
# "sudo BACKUP_CORE_ONLY=1 yunohost backup create --apps nextcloud"
# "sudo BACKUP_CORE_ONLY=1 yunohost backup create --apps transmission"
# See https://yunohost.org/#/backup
ynh_backup "/home/yunohost.transmission" --is_big
ynh_backup --src_path="/home/yunohost.transmission" --is_big

View file

@ -156,7 +156,7 @@ systemctl reload nginx
backup_core_only=$(ynh_app_setting_get $app backup_core_only)
# If "backup_core_only" is still set in settings.yml, print a warning and run the upgrade as usual.
# Setting is deleted at the end of the script to avoid side effect ("ynh_backup_before_upgrade" maybe).
if [ -z $backup_core_only ]
if [ "$backup_core_only" == "1" ]
then
ynh_print_info --message="Setting 'backup_core_only' is deprecated and cannot be used anymore"
ynh_print_info --message="Modify your backup script accordingly or next backup will be huge. See https://github.com/YunoHost/doc/blob/master/backup.md#apps-specific-configuration"