|
|
|
@ -53,14 +53,14 @@ ynh_restore_file "/etc/nginx/conf.d/$domain.d/$app.conf"
|
|
|
|
|
#=================================================
|
|
|
|
|
# RESTORE THE APP MAIN DIR
|
|
|
|
|
#=================================================
|
|
|
|
|
ynh_print_info "Restore the app main directory..."
|
|
|
|
|
ynh_print_info "Restoring the app main directory..."
|
|
|
|
|
|
|
|
|
|
ynh_restore_file "$final_path"
|
|
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
|
# RECREATE THE DEDICATED USER
|
|
|
|
|
#=================================================
|
|
|
|
|
ynh_print_info "Recreate the dedicated systen user..."
|
|
|
|
|
ynh_print_info "Recreating the dedicated systen user..."
|
|
|
|
|
|
|
|
|
|
# Create the dedicated user (if not existing)
|
|
|
|
|
ynh_system_user_create $app
|
|
|
|
@ -83,7 +83,7 @@ ynh_restore_file "/etc/php/7.0/fpm/pool.d/$app.conf"
|
|
|
|
|
#=================================================
|
|
|
|
|
# REINSTALL DEPENDENCIES
|
|
|
|
|
#=================================================
|
|
|
|
|
ynh_print_info "Reinstall dependencies..."
|
|
|
|
|
ynh_print_info "Reinstalling dependencies..."
|
|
|
|
|
|
|
|
|
|
# Define and install dependencies
|
|
|
|
|
ynh_install_app_dependencies deb1 deb2
|
|
|
|
@ -91,7 +91,7 @@ ynh_install_app_dependencies deb1 deb2
|
|
|
|
|
#=================================================
|
|
|
|
|
# RESTORE THE MYSQL DATABASE
|
|
|
|
|
#=================================================
|
|
|
|
|
ynh_print_info "Restoring the mysql database..."
|
|
|
|
|
ynh_print_info "Restoring the MySQL database..."
|
|
|
|
|
|
|
|
|
|
db_pwd=$(ynh_app_setting_get $app mysqlpwd)
|
|
|
|
|
ynh_mysql_setup_db $db_name $db_name $db_pwd
|
|
|
|
@ -128,7 +128,7 @@ ynh_restore_file "/etc/logrotate.d/$app"
|
|
|
|
|
#=================================================
|
|
|
|
|
# RELOAD NGINX AND PHP-FPM
|
|
|
|
|
#=================================================
|
|
|
|
|
ynh_print_info "Reloading nginx and php-fpm..."
|
|
|
|
|
ynh_print_info "Reloading nginx web server and php-fpm..."
|
|
|
|
|
|
|
|
|
|
systemctl reload php7.0-fpm
|
|
|
|
|
systemctl reload nginx
|
|
|
|
|