0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2025-03-16 11:25:09 +01:00

Allow the UID and GID to be changed

Signed-off-by: Tilo Spannagel <development@tilosp.de>
This commit is contained in:
Tilo Spannagel 2018-08-27 15:34:47 +02:00
parent 7b19d3c352
commit 0dde3525ee
No known key found for this signature in database
GPG key ID: E517E9F206B8993D
2 changed files with 8 additions and 0 deletions

View file

@ -5,6 +5,7 @@ RUN set -ex; \
\
apk add --no-cache \
rsync \
shadow \
; \
\
rm /var/spool/cron/crontabs/root; \

View file

@ -19,6 +19,13 @@ run_as() {
fi
}
if [ -n "${NEXTCLOUD_UID+x}" ]; then
usermod -u "$NEXTCLOUD_UID" www-data
fi
if [ -n "${NEXTCLOUD_GID+x}" ]; then
groupmod -g "$NEXTCLOUD_GID" www-data
fi
installed_version="0.0.0.0"
if [ -f /var/www/html/version.php ]; then
# shellcheck disable=SC2016