diff --git a/Containers/nextcloud/entrypoint.sh b/Containers/nextcloud/entrypoint.sh index e8c88faefb2..9ca1a643fb1 100644 --- a/Containers/nextcloud/entrypoint.sh +++ b/Containers/nextcloud/entrypoint.sh @@ -616,18 +616,16 @@ else fi # Imaginary -if version_greater "$installed_version" "24.0.0.0"; then - if [ "$IMAGINARY_ENABLED" = 'yes' ]; then - php /var/www/html/occ config:system:set enabledPreviewProviders 0 --value="OC\\Preview\\Imaginary" - php /var/www/html/occ config:system:set preview_imaginary_url --value="http://$IMAGINARY_HOST:9000" - else - if [ -n "$(php /var/www/html/occ config:system:get preview_imaginary_url)" ]; then - php /var/www/html/occ config:system:delete enabledPreviewProviders 0 - php /var/www/html/occ config:system:delete preview_imaginary_url - php /var/www/html/occ config:system:delete enabledPreviewProviders 20 - php /var/www/html/occ config:system:delete enabledPreviewProviders 21 - php /var/www/html/occ config:system:delete enabledPreviewProviders 22 - fi +if [ "$IMAGINARY_ENABLED" = 'yes' ]; then + php /var/www/html/occ config:system:set enabledPreviewProviders 0 --value="OC\\Preview\\Imaginary" + php /var/www/html/occ config:system:set preview_imaginary_url --value="http://$IMAGINARY_HOST:9000" +else + if [ -n "$(php /var/www/html/occ config:system:get preview_imaginary_url)" ]; then + php /var/www/html/occ config:system:delete enabledPreviewProviders 0 + php /var/www/html/occ config:system:delete preview_imaginary_url + php /var/www/html/occ config:system:delete enabledPreviewProviders 20 + php /var/www/html/occ config:system:delete enabledPreviewProviders 21 + php /var/www/html/occ config:system:delete enabledPreviewProviders 22 fi fi