use php base64 encodie

This commit is contained in:
Sebastian Hugentobler 2018-01-30 10:47:09 +01:00
parent 8be1983afa
commit 6b633189b7
2 changed files with 3 additions and 2 deletions

View File

@ -11,7 +11,8 @@ RUN apk add --no-cache \
nextcloud-files_sharing \
nextcloud-files_texteditor \
nextcloud-pgsql \
php7-opcache
php7-opcache \
php7-pcntl
RUN chown -R nginx:nginx /var/lib/nextcloud
RUN chown -R nginx:nginx /etc/nextcloud

View File

@ -47,7 +47,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 "$(echo $LDAP_BIND_PASSWORD | base64)" 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