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', 15 => 'OC\\Preview\\AVI',
) )
); );
#extraVolumes: extraVolumes:
# - name: nextcloud-onlyoffice-config - name: nextcloud-poststart
# configMap: configMap:
# name: nextcloud-onlyoffice-config-and-scripts name: nextcloud-poststart-config
#extraVolumeMounts: extraVolumeMounts:
# - name: nextcloud-onlyoffice-config - name: nextcloud-poststart
# mountPath: /var/local mountPath: /opt
lifecycle: lifecycle:
postStartCommand: postStartCommand:
- '/bin/bash' - '/bin/bash'
- '-c' - '/opt/setup.sh'
- 'apt update && apt install --yes ffmpeg imagemagick ghostscript libreoffice libreoffice-l10n-de libreoffice-help-de' # && /bin/bash /var/local/setup-apps.sh'
#- 'echo hiho && /bin/bash /var/local/setup-apps.sh'
apps: apps:
custom:
# Basics # Basics
- name: bruteforcesettings - name: bruteforcesettings
enabled: false enabled: false
@ -145,6 +145,21 @@ data:
# enabled: true # enabled: true
# TODO install via CLI # TODO install via CLI
# TODO disabling user status, files_comments, support, event_update_notification (Notifications for calendar event updates), bruteforcesettings # 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 # configure firstrunwizard
# preconfigured: share by mail - https://apps.nextcloud.com/apps/socialsharing_email # 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