1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/nextcloud_ynh.git synced 2024-09-03 19:55:57 +02:00

Update upgrade: auto_upgrade_apps setting not initialized during upgrade if it doesnt exist, making config panel crash when upgrading from old versions ...

This commit is contained in:
Alexandre Aubin 2024-01-21 16:57:16 +01:00 committed by GitHub
parent 4c7cbe12c6
commit 7e681d3bc8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -19,6 +19,10 @@ if [ -z "${phpflags:-}" ]; then
ynh_app_setting_set --app=$app --key=phpflags --value=$phpflags
fi
if [ -z "${auto_upgrade_apps:-}" ]; then
ynh_app_setting_set --app=$app --key=auto_upgrade_apps --value="manual"
fi
# Delete existing ini configuration file (backward compatibility)
if [ -f /etc/php/$YNH_PHP_VERSION/fpm/conf.d/20-$app.ini ]; then
ynh_secure_remove --file=/etc/php/$YNH_PHP_VERSION/fpm/conf.d/20-$app.ini