update to nextcloud 23
This commit is contained in:
parent
cec0aab2d5
commit
89202e6052
13 changed files with 48 additions and 41 deletions
|
@ -1,75 +0,0 @@
|
|||
#!/usr/bin/with-contenv sh
|
||||
set -ex
|
||||
|
||||
cd /var/lib/nextcloud
|
||||
chmod +x ./occ
|
||||
|
||||
if [ ! -f /var/lib/nextcloud/data/.installed ]; then
|
||||
s6-setuidgid nginx ./occ maintenance:install \
|
||||
--database=pgsql \
|
||||
--database-host="$DB_HOST" \
|
||||
--database-name="$DB_NAME" \
|
||||
--database-user="$DB_USER" \
|
||||
--database-pass="$DB_PASSWORD" \
|
||||
--database-port="$DB_PORT" \
|
||||
--admin-user="$ADMIN_USER" \
|
||||
--admin-pass="$ADMIN_PASSWORD" \
|
||||
--data-dir=/var/lib/nextcloud/data/ \
|
||||
--no-interaction
|
||||
|
||||
touch /var/lib/nextcloud/data/.installed
|
||||
fi
|
||||
|
||||
s6-setuidgid nginx ./occ config:app:set --value cron core backgroundjobs_mode
|
||||
s6-setuidgid nginx ./occ app:enable files_sharing
|
||||
s6-setuidgid nginx ./occ app:enable text
|
||||
s6-setuidgid nginx ./occ app:enable files_pdfviewer
|
||||
s6-setuidgid nginx ./occ app:enable files_videoplayer
|
||||
s6-setuidgid nginx ./occ app:enable theming
|
||||
s6-setuidgid nginx ./occ app:enable photos
|
||||
s6-setuidgid nginx ./occ app:enable twofactor_totp
|
||||
s6-setuidgid nginx ./occ app:enable twofactor_backupcodes
|
||||
s6-setuidgid nginx ./occ app:enable twofactor_u2f
|
||||
s6-setuidgid nginx ./occ app:enable polls
|
||||
s6-setuidgid nginx ./occ app:enable calendar
|
||||
s6-setuidgid nginx ./occ app:enable contacts
|
||||
s6-setuidgid nginx ./occ app:enable news
|
||||
s6-setuidgid nginx ./occ app:enable tasks
|
||||
s6-setuidgid nginx ./occ app:enable notes
|
||||
s6-setuidgid nginx ./occ app:enable sociallogin
|
||||
s6-setuidgid nginx ./occ app:enable integration_mastodon
|
||||
s6-setuidgid nginx ./occ app:enable integration_github
|
||||
s6-setuidgid nginx ./occ app:enable integration_gitlab
|
||||
s6-setuidgid nginx ./occ app:disable activity
|
||||
s6-setuidgid nginx ./occ app:disable comments
|
||||
s6-setuidgid nginx ./occ app:disable files_trashbin
|
||||
s6-setuidgid nginx ./occ app:disable firstrunwizard
|
||||
s6-setuidgid nginx ./occ app:disable logreader
|
||||
s6-setuidgid nginx ./occ app:disable nextcloud_announcements
|
||||
s6-setuidgid nginx ./occ app:disable password_policy
|
||||
s6-setuidgid nginx ./occ app:disable serverinfo
|
||||
s6-setuidgid nginx ./occ app:disable support
|
||||
s6-setuidgid nginx ./occ app:disable survey_client
|
||||
s6-setuidgid nginx ./occ app:disable systemtags
|
||||
s6-setuidgid nginx ./occ app:disable updatenotification
|
||||
|
||||
s6-setuidgid nginx ./occ config:system:set --value '\OC\Memcache\APCu' memcache.local
|
||||
|
||||
s6-setuidgid nginx ./occ config:system:set --value "https://$DOMAIN" overwrite.cli.url
|
||||
s6-setuidgid nginx ./occ config:system:set --value "localhost" trusted_domains 0
|
||||
s6-setuidgid nginx ./occ config:system:set --value "$DOMAIN" trusted_domains 1
|
||||
s6-setuidgid nginx ./occ config:system:set --value "syslog" log_type
|
||||
s6-setuidgid nginx ./occ config:system:set --value "" logfile
|
||||
s6-setuidgid nginx ./occ config:system:set --value "3" loglevel
|
||||
|
||||
s6-setuidgid nginx ./occ config:system:set --value "smtp" mail_smtpmode
|
||||
s6-setuidgid nginx ./occ config:system:set --value "${MAIL_SMTP_AUTH_TYPE:-PLAIN}" mail_smtpauthtype
|
||||
s6-setuidgid nginx ./occ config:system:set --value "$MAIL_FROM" mail_from_address
|
||||
s6-setuidgid nginx ./occ config:system:set --value "$MAIL_DOMAIN" mail_domain
|
||||
s6-setuidgid nginx ./occ config:system:set --value "${MAIL_SMTP_SECURITY:-tls}" mail_smtpsecure
|
||||
s6-setuidgid nginx ./occ config:system:set --value "${MAIL_SMTP_AUTH:-1}" mail_smtpauth
|
||||
s6-setuidgid nginx ./occ config:system:set --value "$MAIL_SMTP_HOST" mail_smtphost
|
||||
s6-setuidgid nginx ./occ config:system:set --value "${MAIL_SMTP_PORT:-587}" mail_smtpport
|
||||
s6-setuidgid nginx ./occ config:system:set --value "$MAIL_SMTP_NAME" mail_smtpname
|
||||
s6-setuidgid nginx ./occ config:system:set --value "$MAIL_SMTP_PASSWORD" mail_smtppassword
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
/var/lib/nextcloud/data true nginx 0640 0750
|
||||
/var/lib/nextcloud/config true nginx 0640 0750
|
3
rootfs/etc/s6-overlay/s6-rc.d/crond/run
Normal file
3
rootfs/etc/s6-overlay/s6-rc.d/crond/run
Normal file
|
@ -0,0 +1,3 @@
|
|||
#!/command/with-contenv sh
|
||||
|
||||
exec crond -f
|
1
rootfs/etc/s6-overlay/s6-rc.d/crond/type
Normal file
1
rootfs/etc/s6-overlay/s6-rc.d/crond/type
Normal file
|
@ -0,0 +1 @@
|
|||
longrun
|
1
rootfs/etc/s6-overlay/s6-rc.d/nextcloud-config/type
Normal file
1
rootfs/etc/s6-overlay/s6-rc.d/nextcloud-config/type
Normal file
|
@ -0,0 +1 @@
|
|||
oneshot
|
1
rootfs/etc/s6-overlay/s6-rc.d/nextcloud-config/up
Normal file
1
rootfs/etc/s6-overlay/s6-rc.d/nextcloud-config/up
Normal file
|
@ -0,0 +1 @@
|
|||
nextcloud-config
|
2
rootfs/etc/s6-overlay/s6-rc.d/nginx/dependencies
Normal file
2
rootfs/etc/s6-overlay/s6-rc.d/nginx/dependencies
Normal file
|
@ -0,0 +1,2 @@
|
|||
confd
|
||||
nextcloud-config
|
|
@ -1,3 +1,3 @@
|
|||
#!/usr/bin/with-contenv sh
|
||||
#!/command/with-contenv sh
|
||||
|
||||
exec nginx -g "daemon off;"
|
1
rootfs/etc/s6-overlay/s6-rc.d/nginx/type
Normal file
1
rootfs/etc/s6-overlay/s6-rc.d/nginx/type
Normal file
|
@ -0,0 +1 @@
|
|||
longrun
|
0
rootfs/etc/s6-overlay/s6-rc.d/user/contents.d/crond
Normal file
0
rootfs/etc/s6-overlay/s6-rc.d/user/contents.d/crond
Normal file
0
rootfs/etc/s6-overlay/s6-rc.d/user/contents.d/nginx
Normal file
0
rootfs/etc/s6-overlay/s6-rc.d/user/contents.d/nginx
Normal file
|
@ -1,3 +0,0 @@
|
|||
#!/usr/bin/with-contenv sh
|
||||
|
||||
exec crond -f
|
Loading…
Add table
Add a link
Reference in a new issue