mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-20 06:26:57 +00:00
add imaginary
Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
parent
c926f92b6f
commit
05e90d6110
13 changed files with 95 additions and 2 deletions
2
Containers/imaginary/Dockerfile
Normal file
2
Containers/imaginary/Dockerfile
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
# From https://github.com/h2non/imaginary/blob/master/Dockerfile
|
||||
FROM nextcloud/imaginary:20220819
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue