From 9d1e8faf5c9a178108875baa8e7953c592db1494 Mon Sep 17 00:00:00 2001 From: Simon L Date: Fri, 26 May 2023 12:36:00 +0200 Subject: [PATCH] remove imaginary version check Signed-off-by: Simon L --- Containers/nextcloud/entrypoint.sh | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/Containers/nextcloud/entrypoint.sh b/Containers/nextcloud/entrypoint.sh index e8c88fae..9ca1a643 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