1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/synapse_ynh.git synced 2024-09-03 20:26:38 +02:00

Update upgrade

Add migration for explicitly setting PHP version
This commit is contained in:
CodeShakingSheep 2024-08-26 19:19:56 -05:00 committed by GitHub
parent a8aae67f21
commit 5e8db5d924
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -241,6 +241,16 @@ if grep -q "^matrix-$app" /etc/passwd; then
adduser $app ssl-cert adduser $app ssl-cert
fi fi
#=================================================
# MIGRATION 13 : set PHP version if unset
#=================================================
# If phpversion doesn't exist, create it
if [ -z "${phpversion:-}" ]; then
phpversion=8.3
ynh_app_setting_set --app=$app --key=phpversion --value=$phpversion
fi
#================================================= #=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE # DOWNLOAD, CHECK AND UNPACK SOURCE
#================================================= #=================================================