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 save sqlite bdd since upgarade

This commit is contained in:
Rodolphe Robles 2020-04-04 08:03:43 +02:00
parent 8941fcc58e
commit 330a4107e8
2 changed files with 13 additions and 12 deletions

View file

@ -15,6 +15,12 @@ source /usr/share/yunohost/helpers
app=$YNH_APP_INSTANCE_NAME
final_path=/var/www/$app
#=================================================
# backup the bdd
#=================================================
sudo cp /tmp/association.sqlite $final_path/association.sqlite
#=================================================
# Change options in file config.dist.php
# and copy in config.local.php

View file

@ -110,6 +110,13 @@ then
ynh_setup_source --dest_dir="$final_path"
fi
#=================================================
# UPGRADE DEPENDENCIES
#=================================================
ynh_script_progression --message="Upgrading dependencies..." --time --weight=1
ynh_install_app_dependencies $pkg_dependencies
#=================================================
# NGINX CONFIGURATION
#=================================================
@ -118,12 +125,6 @@ ynh_script_progression --message="Upgrading nginx web server configuration..." -
# Create a dedicated nginx config
ynh_add_nginx_config
#=================================================
# UPGRADE DEPENDENCIES
#=================================================
ynh_script_progression --message="Upgrading dependencies..." --time --weight=1
ynh_install_app_dependencies $pkg_dependencies
#=================================================
# CREATE DEDICATED USER
@ -133,12 +134,6 @@ ynh_script_progression --message="Making sure dedicated system user exists..." -
# Create a dedicated user (if not existing)
ynh_system_user_create --username=$app
#=================================================
# SPECIFIC UPGRADE
#=================================================
sudo cp /tmp/association.sqlite $final_path/association.sqlite
#=================================================
#=================================================
# STORE THE CONFIG FILE CHECKSUM
#=================================================