Téléverser les fichiers vers "scripts"

This commit is contained in:
Alexandre NOEL 2026-09-03 13:59:13 +02:00
commit 00f9eece9a
2 changed files with 25 additions and 0 deletions

10
scripts/restore Normal file
View file

@ -0,0 +1,10 @@
#!/bin/bash
source ../settings/scripts/_common.sh
ynh_restore "$install_dir"
ynh_restore "$data_dir"
ynh_restore "/etc/nginx/conf.d/$domain.d/$app.conf"
ynh_restore "/etc/php/$php_version/fpm/pool.d/$app.conf"
chown -R "$app:$app" "$install_dir" "$data_dir"
ynh_exec_as_app php "$install_dir/scripts/migrate.php"
ynh_systemctl --service=php8.2-fpm --action=reload
ynh_systemctl --service=nginx --action=reload