From 0b5e5d2c175360ca686b557d9a87127970f18c99 Mon Sep 17 00:00:00 2001 From: xeruf <27jf@pm.me> Date: Wed, 29 Mar 2023 22:30:26 +0100 Subject: [PATCH] nextcloud: install preview generators in postStart --- .../stackspin-nextcloud-override.yaml | 34 ++++++++++++------- 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/basic/overrides/stackspin-nextcloud-override.yaml b/basic/overrides/stackspin-nextcloud-override.yaml index 57eba03..2fc7d55 100644 --- a/basic/overrides/stackspin-nextcloud-override.yaml +++ b/basic/overrides/stackspin-nextcloud-override.yaml @@ -22,19 +22,25 @@ data: 'default_locale' => 'en-gb', 'lost_password_link' => 'https://dashboard.${domain}/web/recovery', 'enable_previews' => true, + 'preview_libreoffice_path' => '/usr/bin/libreoffice', 'enabledPreviewProviders' => array ( - 'OC\Preview\Movie', - 'OC\Preview\PNG', - 'OC\Preview\JPEG', - 'OC\Preview\GIF', - 'OC\Preview\BMP', - 'OC\Preview\XBitmap', - 'OC\Preview\MP3', - 'OC\Preview\MP4', - 'OC\Preview\TXT', - 'OC\Preview\MarkDown', - 'OC\Preview\PDF' + 0 => 'OC\\Preview\\TXT', + 1 => 'OC\\Preview\\MarkDown', + 2 => 'OC\\Preview\\OpenDocument', + 3 => 'OC\\Preview\\PDF', + 4 => 'OC\\Preview\\MSOffice2003', + 5 => 'OC\\Preview\\MSOfficeDoc', + 6 => 'OC\\Preview\\Image', + 7 => 'OC\\Preview\\Photoshop', + 8 => 'OC\\Preview\\TIFF', + 9 => 'OC\\Preview\\SVG', + 10 => 'OC\\Preview\\Font', + 11 => 'OC\\Preview\\MP3', + 12 => 'OC\\Preview\\Movie', + 13 => 'OC\\Preview\\MKV', + 14 => 'OC\\Preview\\MP4', + 15 => 'OC\\Preview\\AVI', ) ); #extraVolumes: @@ -49,7 +55,7 @@ data: postStartCommand: - '/bin/bash' - '-c' - - 'echo hiho | tee /tmp/test' + - 'apt update && apt install ffmpeg imagemagick ghostscript libreoffice libreoffice-l10n-de libreoffice-help-de' #- 'echo hiho && /bin/bash /var/local/setup-apps.sh' apps: # Basics @@ -86,6 +92,8 @@ data: enabled: true - name: metadata enabled: true + - name: previewgenerator + enabled: true # TODO handy but incompatible #- name: extract # enabled: false @@ -109,7 +117,7 @@ data: #- name: theming # enabled: true - name: apporder - enabled: true + enabled: false - name: side_menu enabled: true - name: breezedark