add imaginary

Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
szaimen 2022-08-17 15:09:22 +02:00
parent c926f92b6f
commit 05e90d6110
13 changed files with 95 additions and 2 deletions

View file

@ -407,5 +407,16 @@ else
fi
fi
# Imaginary
if version_greater "24.0.0.0" "$installed_version"; 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
php /var/www/html/occ config:system:delete enabledPreviewProviders 0
php /var/www/html/occ config:system:delete preview_imaginary_url
fi
fi
# Remove the update skip file always
rm -f /mnt/ncdata/skip.update