fix: chown volume correctly to allow rsync as given owner

This commit is contained in:
David Stefan 2017-04-30 16:19:25 +01:00
parent 33fec0f536
commit 13ea51ab10

View file

@ -7,7 +7,7 @@ GROUP=${GROUP:-nogroup}
mkdir -p ${VOLUME}
addgroup ${GROUP}
adduser -D -H -G ${GROUP} ${OWNER}
chown ${OWNER}:${GROUP} ${VOLUME}
chown -R ${OWNER}:${GROUP} ${VOLUME}
cat <<EOF > /etc/rsyncd.conf
uid = ${OWNER}