1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/garradin_ynh.git synced 2024-09-03 18:36:17 +02:00

correct url for backup files

This commit is contained in:
Rodolphe Robles 2020-04-04 15:07:28 +02:00
parent d600f8293c
commit 3318d4323b

View file

@ -34,6 +34,13 @@ final_path=$(ynh_app_setting_get --app=$app --key=final_path) || ynh_die "This p
### UPGRADE_APP should be used to upgrade the core app only if there's an upgrade to do.
upgrade_type=$(ynh_check_app_version_changed)
#=================================================
# Backup squlite, config.local.php and squelettes directory
#=================================================
sudo cp -avr $path_url/association.sqlite /tmp/association.sqlite
sudo cp -avr $path_url/www/squelettes /tmp/squelettes
sudo cp -a $path_url/config.local.php /tmp/config.local.php
#=================================================
# ENSURE DOWNWARD COMPATIBILITY
#=================================================
@ -49,12 +56,6 @@ elif [ "$is_public" = "No" ]; then
is_public=0
fi
#=================================================
# Backup squlite, config.local.php and squelettes directory
#=================================================
sudo cp -avr $final_path/association.sqlite /tmp/association.sqlite
sudo cp -avr $final_path/www/squelettes /tmp/squelettes
sudo cp -a $final_path/config.local.php /tmp/config.local.php
#=================================================
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
#=================================================