|
|
@@ -36,7 +36,7 @@ phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
|
|
|
#=================================================
|
|
|
ynh_script_progression --message="Validating restoration parameters..."
|
|
|
|
|
|
-ynh_secure_remove $final_path
|
|
|
+ynh_secure_remove --file="$final_path"
|
|
|
|
|
|
#=================================================
|
|
|
# STANDARD RESTORATION STEPS
|
|
|
@@ -52,7 +52,11 @@ ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"
|
|
|
#=================================================
|
|
|
ynh_script_progression --message="Restoring the app main directory..."
|
|
|
|
|
|
-ln -s /usr/share/zabbix /var/www/zabbix
|
|
|
+ln -s /usr/share/zabbix "$final_path"
|
|
|
+
|
|
|
+chmod 750 "$final_path"
|
|
|
+chmod -R o-rwx "$final_path"
|
|
|
+chown -R $app:www-data "$final_path"
|
|
|
|
|
|
#=================================================
|
|
|
# RESTORE THE PHP-FPM CONFIGURATION
|