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

try to backup sql for the upgrade

This commit is contained in:
Rodolphe Robles 2020-04-04 07:21:18 +02:00
parent 2440680a9c
commit 8b8e4a0107

View file

@ -55,6 +55,11 @@ if [ -z "$final_path" ]; then
ynh_app_setting_set --app=$app --key=final_path --value=$final_path
fi
#=================================================
# Backup squlite
#=================================================
sudo cp -a $final_path/association.squilte /tmp/association.squilte
#=================================================
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
#=================================================
@ -128,18 +133,10 @@ ynh_script_progression --message="Making sure dedicated system user exists..." -
# Create a dedicated user (if not existing)
ynh_system_user_create --username=$app
#=================================================
# PHP-FPM CONFIGURATION
#=================================================
ynh_script_progression --message="Upgrading php-fpm configuration..." --time --weight=1
# Create a dedicated php-fpm config
ynh_add_fpm_config
#=================================================
# SPECIFIC UPGRADE
#=================================================
# ...
sudo cp /tmp/association.squilte $final_path/association.squilte
#=================================================
#=================================================
@ -162,6 +159,7 @@ sudo chmod 755 $final_path -R
#=================================================
# PHP-FPM CONFIGURATION
#=================================================
ynh_script_progression --message="Upgrading php-fpm configuration..." --time --weight=1
# Create a dedicated php-fpm config
ynh_add_fpm_config