nextcloud: add setup script and migrate format

This commit is contained in:
xeruf 2023-09-28 11:53:17 +01:00
parent 41fb358312
commit af1a63d1a0
1 changed files with 113 additions and 98 deletions

View File

@ -44,21 +44,21 @@ data:
15 => 'OC\\Preview\\AVI',
)
);
#extraVolumes:
# - name: nextcloud-onlyoffice-config
# configMap:
# name: nextcloud-onlyoffice-config-and-scripts
#extraVolumeMounts:
# - name: nextcloud-onlyoffice-config
# mountPath: /var/local
extraVolumes:
- name: nextcloud-poststart
configMap:
name: nextcloud-poststart-config
extraVolumeMounts:
- name: nextcloud-poststart
mountPath: /opt
lifecycle:
postStartCommand:
- '/bin/bash'
- '-c'
- 'apt update && apt install --yes ffmpeg imagemagick ghostscript libreoffice libreoffice-l10n-de libreoffice-help-de'
#- 'echo hiho && /bin/bash /var/local/setup-apps.sh'
- '/opt/setup.sh'
# && /bin/bash /var/local/setup-apps.sh'
apps:
custom:
# Basics
- name: bruteforcesettings
enabled: false
@ -145,6 +145,21 @@ data:
# enabled: true
# TODO install via CLI
# TODO disabling user status, files_comments, support, event_update_notification (Notifications for calendar event updates), bruteforcesettings
# need to disable tasks soon
# disable tasks soon
# configure firstrunwizard
# preconfigured: share by mail - https://apps.nextcloud.com/apps/socialsharing_email
---
apiVersion: v1
kind: ConfigMap
metadata:
namespace: stackspin-apps
name: stackspin-nextcloud-setup
data:
setup.sh: |
#!/bin/bash
set -e
exec > /var/www/tmp/setup-$(date +"%s").log
exec 2> /var/www/tmp/setup-$(date +"%s")_error.log
apt update
apt install --yes ffmpeg imagemagick ghostscript libreoffice libreoffice-l10n-de libreoffice-help-de