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

Fix phpflags (#691)

This commit is contained in:
tituspijean 2024-06-08 08:01:04 +02:00 committed by GitHub
parent cc45b8eba2
commit 38c2ecc365
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -13,11 +13,8 @@ ynh_script_progression --message="Ensuring downward compatibility..."
# Remove the option backup_core_only if it's in the settings.yml file # Remove the option backup_core_only if it's in the settings.yml file
ynh_app_setting_delete --app=$app --key=backup_core_only ynh_app_setting_delete --app=$app --key=backup_core_only
# If phpflags doesn't exist, create it phpflags="--define apc.enable_cli=1"
if [ -z "${phpflags:-}" ]; then ynh_app_setting_set --app=$app --key=phpflags --value="$phpflags"
phpflags="--define apc.enable_cli=1"
ynh_app_setting_set --app=$app --key=phpflags --value="$phpflags"
fi
if ynh_compare_current_package_version --comparison lt --version 22.2~ynh1 if ynh_compare_current_package_version --comparison lt --version 22.2~ynh1
then then