diff --git a/scripts/restore b/scripts/restore index ae3c685..9e5368a 100755 --- a/scripts/restore +++ b/scripts/restore @@ -22,11 +22,11 @@ chown -R $app:www-data "$install_dir" #================================================= # RESTORE THE DATA DIRECTORY #================================================= -#ynh_script_progression --message="Restoring the data directory..." --weight=1 +ynh_script_progression --message="Restoring the data directory..." --weight=1 -#ynh_restore_file --origin_path="$data_dir" --not_mandatory +ynh_restore_file --origin_path="$data_dir" --not_mandatory -#chown -R $app:www-data "$data_dir" +chown -R $app:www-data "$data_dir" #================================================= # RESTORE THE MYSQL DATABASE @@ -54,7 +54,6 @@ ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf" ynh_script_progression --message="Reloading NGINX web server and $app's service..." --weight=1 # Typically you only have either $app or php-fpm but not both at the same time... -ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" ynh_systemd_action --service_name=php$phpversion-fpm --action=reload ynh_systemd_action --service_name=nginx --action=reload