mirror of
https://github.com/Fishwaldo/docker-rsync.git
synced 2025-03-15 19:42:44 +00:00
fix: allow changing default owner and group
This commit is contained in:
parent
cb6e001f32
commit
705130eba6
1 changed files with 2 additions and 0 deletions
|
@ -5,6 +5,8 @@ OWNER=${OWNER:-nobody}
|
|||
GROUP=${GROUP:-nogroup}
|
||||
|
||||
mkdir -p ${VOLUME}
|
||||
addgroup ${GROUP}
|
||||
adduser -D -H -G ${GROUP} ${OWNER}
|
||||
chown ${OWNER}:${GROUP} ${VOLUME}
|
||||
|
||||
cat <<EOF > /etc/rsyncd.conf
|
||||
|
|
Loading…
Add table
Reference in a new issue