mirror of
https://github.com/napnap75/multiarch-docker-images.git
synced 2025-12-15 03:04:19 +01:00
Allow to config chroot to remove permission errors
This commit is contained in:
@@ -28,6 +28,8 @@ for i in {0..9} ; do
|
|||||||
GROUPID=${!testvar:-root}
|
GROUPID=${!testvar:-root}
|
||||||
testvar=RSYNC_READONLY_$i
|
testvar=RSYNC_READONLY_$i
|
||||||
READONLY=${!testvar:-false}
|
READONLY=${!testvar:-false}
|
||||||
|
testvar=RSYNC_USECHROOT_$i
|
||||||
|
USECHROOT=${!testvar:-no}
|
||||||
|
|
||||||
echo "$USERNAME:$PASSWORD" >> /etc/rsyncd.secrets
|
echo "$USERNAME:$PASSWORD" >> /etc/rsyncd.secrets
|
||||||
|
|
||||||
@@ -38,6 +40,7 @@ for i in {0..9} ; do
|
|||||||
hosts deny = *
|
hosts deny = *
|
||||||
hosts allow = ${ALLOW}
|
hosts allow = ${ALLOW}
|
||||||
read only = ${READONLY}
|
read only = ${READONLY}
|
||||||
|
use chroot = ${USECHROOT}
|
||||||
path = ${DIRECTORY}
|
path = ${DIRECTORY}
|
||||||
comment = ${VOLUME} directory
|
comment = ${VOLUME} directory
|
||||||
auth users = ${USERNAME}
|
auth users = ${USERNAME}
|
||||||
|
|||||||
Reference in New Issue
Block a user