From 5d4f979104bc93826abb1ab559567b0a68370761 Mon Sep 17 00:00:00 2001 From: Kayou Date: Fri, 27 Mar 2020 16:58:43 +0100 Subject: [PATCH 1/3] fix restore --- scripts/restore | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/restore b/scripts/restore index d330801..d006fdb 100755 --- a/scripts/restore +++ b/scripts/restore @@ -117,11 +117,11 @@ ynh_restore_file --origin_path="/etc/logrotate.d/$app" # SPECIFIC UPGRADE #================================================= init_composer $final_path -cd $final_path && sudo /usr/bin/php7.2 artisan migrate --env=production --force -cd $final_path && sudo /usr/bin/php7.2 artisan cache:clear -cd $final_path && sudo /usr/bin/php7.2 artisan firefly:upgrade-database -cd $final_path && sudo /usr/bin/php7.2 artisan firefly:verify -cd $final_path && sudo /usr/bin/php7.2 artisan passport:install +cd $final_path && sudo /usr/bin/php$phpversion artisan migrate --env=production --force +cd $final_path && sudo /usr/bin/php$phpversion artisan cache:clear +cd $final_path && sudo /usr/bin/php$phpversion artisan firefly:upgrade-database +cd $final_path && sudo /usr/bin/php$phpversion artisan firefly:verify +cd $final_path && sudo /usr/bin/php$phpversion artisan passport:install #================================================= # GENERIC FINALIZATION From 1154a742155742a4d92eedf7b2255ec93e1976b7 Mon Sep 17 00:00:00 2001 From: Kayou Date: Fri, 27 Mar 2020 17:07:04 +0100 Subject: [PATCH 2/3] Update restore --- scripts/restore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/restore b/scripts/restore index d006fdb..815fddc 100755 --- a/scripts/restore +++ b/scripts/restore @@ -130,7 +130,7 @@ cd $final_path && sudo /usr/bin/php$phpversion artisan passport:install #================================================= ynh_script_progression --message="Reloading nginx web server and php-fpm..." --time --weight=1 -ynh_systemd_action --service_name=php7.2-fpm --action=reload +ynh_systemd_action --service_name=php$phpversion-fpm --action=reload ynh_systemd_action --service_name=nginx --action=reload #================================================= From 0bf76c15ee3aed060d45b23c9c952d0c6a7cb595 Mon Sep 17 00:00:00 2001 From: Kayou Date: Fri, 27 Mar 2020 17:08:06 +0100 Subject: [PATCH 3/3] Update restore --- scripts/restore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/restore b/scripts/restore index 815fddc..d8aafe4 100755 --- a/scripts/restore +++ b/scripts/restore @@ -80,7 +80,7 @@ chown -R $app: $final_path # RESTORE THE PHP-FPM CONFIGURATION #================================================= -ynh_restore_file --origin_path="/etc/php/7.2/fpm/pool.d/$app.conf" +ynh_restore_file --origin_path="/etc/php/$phpversion/fpm/pool.d/$app.conf" #================================================= # SPECIFIC RESTORATION