1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/framaforms_ynh.git synced 2024-09-03 18:36:12 +02:00
This commit is contained in:
lapineige 2023-08-13 12:46:59 +02:00 committed by GitHub
parent bbde829e32
commit 6af21768b7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,46 +10,6 @@
source ../settings/scripts/_common.sh
source /usr/share/yunohost/helpers
#=================================================
# MANAGE SCRIPT FAILURE
#=================================================
# Exit if an error occurs during the execution of the script
#=================================================
# LOAD SETTINGS
#=================================================
#=================================================
# CHECK IF THE APP CAN BE RESTORED
#=================================================
|| ynh_die --message="There is already a directory: $install_dir "
#=================================================
# STANDARD RESTORATION STEPS
#=================================================
# RECREATE THE DEDICATED USER
#=================================================
# Create the dedicated user (if not existing)
#=================================================
# RESTORE THE APP MAIN DIR
#=================================================
@ -79,11 +39,6 @@ chown -R $app:www-data "$data_dir"
#=================================================
# SPECIFIC RESTORATION
#=================================================
# REINSTALL DEPENDENCIES
#=================================================
# Define and install dependencies
#=================================================
@ -97,7 +52,6 @@ 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
#=================================================
# RESTORE THE NGINX CONFIGURATION
#=================================================
@ -109,10 +63,6 @@ ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"
# RESTORE THE POSTGRESQL DATABASE
#=================================================
ynh_psql_execute_file_as_root --database=$db_name --file="./db.sql"
#=================================================