improvement to backup restore script

This commit is contained in:
Boudewijn 2025-03-04 22:56:47 +01:00
parent 4303142f0f
commit acf8a4137d
2 changed files with 4 additions and 1 deletions

View file

@ -69,7 +69,7 @@ chmod -R 2775 "$install_dir/storage" "$install_dir/app" "$install_dir/public" "$
ynh_script_progression "Finalizing installation..."
# Installation with curl: set up the first/single user
ynh_local_curl "/index.php/register" "name=$user" "email=$email" "password=$password" "password_confirmation=$password"
ynh_local_curl /index.php/register" "name=$user" "email=$email" "password=$password" "password_confirmation=$password"
#=================================================
# END OF SCRIPT

View file

@ -31,6 +31,9 @@ ynh_script_progression "Restoring system configurations related to $app..."
ynh_restore "/etc/nginx/conf.d/$domain.d/$app.conf"
chgrp "www-data" -R "$install_dir/storage" "$install_dir/public"
chmod -R 2775 "$install_dir/storage" "$install_dir/app" "$install_dir/public" "$install_dir/bootstrap/"
#=================================================
# RELOAD NGINX AND PHP-FPM OR THE APP SERVICE
#=================================================