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:
parent
7b19d3c352
commit
0dde3525ee
2 changed files with 8 additions and 0 deletions
|
@ -5,6 +5,7 @@ RUN set -ex; \
|
|||
\
|
||||
apk add --no-cache \
|
||||
rsync \
|
||||
shadow \
|
||||
; \
|
||||
\
|
||||
rm /var/spool/cron/crontabs/root; \
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue