From 97e17d3fc8723f2fe24e0c209d223df94af7e29a Mon Sep 17 00:00:00 2001 From: Rodolphe Robles Date: Sat, 4 Apr 2020 15:13:21 +0200 Subject: [PATCH] correct url for backup files --- scripts/upgrade | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 7c987ca..fc80f98 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -9,6 +9,12 @@ source _common.sh source /usr/share/yunohost/helpers +#================================================= +# Backup squlite, config.local.php and squelettes directory +#================================================= +sudo cp -avr /var/www/garradin/association.sqlite /tmp/association.sqlite +sudo cp -avr /var/www/garradin/www/squelettes /tmp/squelettes +sudo cp -a /var/www/garradin/config.local.php /tmp/config.local.php #================================================= # LOAD SETTINGS @@ -34,12 +40,6 @@ 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