mirror of
https://github.com/YunoHost-Apps/baikal_ynh.git
synced 2024-09-03 18:16:11 +02:00
Specify the php version
This commit is contained in:
parent
1ae23b9416
commit
5a739f9b6d
2 changed files with 5 additions and 2 deletions
|
@ -5,7 +5,9 @@
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# dependencies used by the app
|
# dependencies used by the app
|
||||||
pkg_dependencies="php-xml php-mbstring php-mysql"
|
YNH_PHP_VERSION="7.3"
|
||||||
|
|
||||||
|
pkg_dependencies="php${YNH_PHP_VERSION}-xml php${YNH_PHP_VERSION}-mbstring php${YNH_PHP_VERSION}-mysql"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# EXPERIMENTAL HELPERS
|
# EXPERIMENTAL HELPERS
|
||||||
|
|
|
@ -94,6 +94,7 @@ ynh_script_progression --message="Upgrading nginx web server configuration..."
|
||||||
|
|
||||||
# Create a dedicated nginx config
|
# Create a dedicated nginx config
|
||||||
ynh_add_nginx_config
|
ynh_add_nginx_config
|
||||||
|
phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# UPGRADE DEPENDENCIES
|
# UPGRADE DEPENDENCIES
|
||||||
|
@ -129,7 +130,7 @@ then
|
||||||
ynh_script_progression --message="Upgrading baikal..."
|
ynh_script_progression --message="Upgrading baikal..."
|
||||||
|
|
||||||
# Run Baikal upgrade
|
# Run Baikal upgrade
|
||||||
php "${final_path}/bin/upgrade.sh"
|
php"${phpversion}" "${final_path}/bin/upgrade.sh"
|
||||||
|
|
||||||
# Cleanup old baikal-admin sessions
|
# Cleanup old baikal-admin sessions
|
||||||
# since we may have changed owner of the session file
|
# since we may have changed owner of the session file
|
||||||
|
|
Loading…
Add table
Reference in a new issue