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

Missing version var for call to php

This commit is contained in:
dr41nU 2020-04-12 15:26:28 +02:00 committed by GitHub
parent e03cc8c117
commit b6761491df
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
#=================================================
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
@ -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/$phpversion artisan migrate --env=production --force
cd $final_path && sudo /usr/bin/$phpversion artisan cache:clear
cd $final_path && sudo /usr/bin/$phpversion firefly:upgrade-database
cd $final_path && sudo /usr/bin/$phpversion firefly:verify
cd $final_path && sudo /usr/bin/$phpversion passport:install
#=================================================
# 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_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
#=================================================