1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/firefly-iii_ynh.git synced 2024-09-03 18:36:13 +02:00

Merge pull request #18 from YunoHost-Apps/fix-restore

fix restore
This commit is contained in:
James Cole 2020-03-28 18:16:41 +00:00 committed by GitHub
commit 87fccba099
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -80,7 +80,7 @@ chown -R $app: $final_path
# RESTORE THE PHP-FPM CONFIGURATION # 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 # SPECIFIC RESTORATION
@ -117,11 +117,11 @@ ynh_restore_file --origin_path="/etc/logrotate.d/$app"
# SPECIFIC UPGRADE # SPECIFIC UPGRADE
#================================================= #=================================================
init_composer $final_path init_composer $final_path
cd $final_path && sudo /usr/bin/php7.2 artisan migrate --env=production --force cd $final_path && sudo /usr/bin/php$phpversion artisan migrate --env=production --force
cd $final_path && sudo /usr/bin/php7.2 artisan cache:clear cd $final_path && sudo /usr/bin/php$phpversion artisan cache:clear
cd $final_path && sudo /usr/bin/php7.2 artisan firefly:upgrade-database cd $final_path && sudo /usr/bin/php$phpversion artisan firefly:upgrade-database
cd $final_path && sudo /usr/bin/php7.2 artisan firefly:verify cd $final_path && sudo /usr/bin/php$phpversion artisan firefly:verify
cd $final_path && sudo /usr/bin/php7.2 artisan passport:install cd $final_path && sudo /usr/bin/php$phpversion artisan passport:install
#================================================= #=================================================
# GENERIC FINALIZATION # GENERIC FINALIZATION
@ -130,7 +130,7 @@ cd $final_path && sudo /usr/bin/php7.2 artisan passport:install
#================================================= #=================================================
ynh_script_progression --message="Reloading nginx web server and php-fpm..." --time --weight=1 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 ynh_systemd_action --service_name=nginx --action=reload
#================================================= #=================================================