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:
parent
d600f8293c
commit
3318d4323b
1 changed files with 7 additions and 6 deletions
|
@ -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_APP should be used to upgrade the core app only if there's an upgrade to do.
|
||||||
upgrade_type=$(ynh_check_app_version_changed)
|
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
|
# ENSURE DOWNWARD COMPATIBILITY
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -49,12 +56,6 @@ elif [ "$is_public" = "No" ]; then
|
||||||
is_public=0
|
is_public=0
|
||||||
fi
|
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
|
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue