1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/lychee_ynh.git synced 2024-09-03 19:36:36 +02:00
This commit is contained in:
ericgaspar 2020-12-27 19:25:27 +01:00
parent 77a4ae4f30
commit 307e0a1743
No known key found for this signature in database
GPG key ID: 574F281483054D44
3 changed files with 5 additions and 3 deletions

View file

@ -38,7 +38,7 @@ ynh_backup --src_path="$final_path"
# BACKUP MEDIA FOLDER
#=================================================
ynh_backup --src_path="/home/yunohost.$app" --is_big
ynh_backup --src_path="/home/yunohost.app/$app" --is_big
#=================================================
# BACKUP THE NGINX CONFIGURATION

View file

@ -28,6 +28,7 @@ final_path=$(ynh_app_setting_get --app=$app --key=final_path)
db_name=$(ynh_app_setting_get --app=$app --key=db_name)
db_user=$db_name
phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
public_path=$(ynh_app_setting_get --app=$app --key=public_path)
#=================================================
# CHECK IF THE APP CAN BE RESTORED
@ -75,7 +76,7 @@ ynh_system_user_create --username=$app
ynh_script_progression --message="Restoring Lychee data..."
# Use --not_mandatory for the data directory, because if the backup has been made with BACKUP_CORE_ONLY, there's no data into the backup.
ynh_restore_file --origin_path="/home/yunohost.$app" --not_mandatory
ynh_restore_file --origin_path="/home/yunohost.app/$app" --not_mandatory
#=================================================
# RESTORE USER RIGHTS
@ -94,7 +95,7 @@ ynh_script_progression --message="Restoring PHP-FPM configuration..."
ynh_restore_file --origin_path="/etc/php/$phpversion/fpm/pool.d/$app.conf"
# Recreate a dedicated PHP-FPM config
ynh_add_fpm_config --usage=low --footprint=low --package="$extra_php_dependencies"
ynh_add_fpm_config --package="$extra_php_dependencies"
#=================================================
# RESTORE THE MYSQL DATABASE

View file

@ -22,6 +22,7 @@ is_public=$(ynh_app_setting_get --app=$app --key=is_public)
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
db_name=$(ynh_app_setting_get --app=$app --key=db_name)
phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
public_path=$(ynh_app_setting_get --app=$app --key=public_path)
#=================================================
# CHECK VERSION