From 2bd9546f4707329bcd22d4ba780f65ff3e843299 Mon Sep 17 00:00:00 2001 From: Sebastian Hugentobler Date: Tue, 30 Jan 2018 10:56:04 +0100 Subject: [PATCH] correctly set ldap password --- Dockerfile | 5 ++++- rootfs/etc/cont-init.d/00-nextcloud | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7502135..ebf6836 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,9 +10,12 @@ RUN apk add --no-cache \ nextcloud-user_ldap \ nextcloud-files_sharing \ nextcloud-files_texteditor \ + nextcloud-files_pdfviewer \ + nextcloud-theming \ nextcloud-pgsql \ php7-opcache \ - php7-pcntl + php7-pcntl \ + php7-imagick RUN chown -R nginx:nginx /var/lib/nextcloud RUN chown -R nginx:nginx /etc/nextcloud diff --git a/rootfs/etc/cont-init.d/00-nextcloud b/rootfs/etc/cont-init.d/00-nextcloud index 8c1ed51..6f1d5eb 100644 --- a/rootfs/etc/cont-init.d/00-nextcloud +++ b/rootfs/etc/cont-init.d/00-nextcloud @@ -22,6 +22,8 @@ if [ $? -ne 1 ]; then s6-setuidgid nginx ./occ app:enable user_ldap s6-setuidgid nginx ./occ app:enable files_sharing s6-setuidgid nginx ./occ app:enable files_texteditor + s6-setuidgid nginx ./occ app:enable files_pdfviewer + s6-setuidgid nginx ./occ app:enable theming fi s6-setuidgid nginx ./occ config:system:set --value "https://$DOMAIN" overwrite.cli.url @@ -47,7 +49,7 @@ s6-setuidgid nginx ./occ config:app:set --value "$LDAP_LOGIN_FILTER" user_ldap l s6-setuidgid nginx ./occ config:app:set --value "$LDAP_TLS" user_ldap ldap_tls s6-setuidgid nginx ./occ config:app:set --value "$LDAP_HOST" user_ldap ldap_host s6-setuidgid nginx ./occ config:app:set --value "$LDAP_BIND_USER" user_ldap ldap_dn -s6-setuidgid nginx ./occ config:app:set --value "$(php -r 'echo base64_encode(getenv(\"LDAP_BIND_PASSWORD\"));')" user_ldap ldap_agent_password +s6-setuidgid nginx ./occ config:app:set --value "$(php -r 'echo base64_encode(getenv("LDAP_BIND_PASSWORD"));')" user_ldap ldap_agent_password s6-setuidgid nginx ./occ config:app:set --value "$LDAP_GROUP_FILTER" user_ldap ldap_group_filter s6-setuidgid nginx ./occ config:app:set --value "$LDAP_USER_DISPLAY_NAME" user_ldap ldap_display_name s6-setuidgid nginx ./occ config:app:set --value "${LDAP_PORT:-389}" user_ldap ldap_port