fix: perms
This commit is contained in:
parent
3bc0ded5a0
commit
adb784ca4c
1 changed files with 3 additions and 1 deletions
|
@ -3,4 +3,6 @@
|
|||
cp ./etc/rsyncd.conf /etc/rsyncd.conf
|
||||
[ -d "/var/lib/sfbs" ] || mkdir -p /var/lib/sfbs
|
||||
[ -f "/var/lib/sfbs/rsync-password" ] || openssl rand -hex 16 > /var/lib/sfbs/rsync-password
|
||||
[ -f "/var/lib/sfbs/rsync-auth" ] || (echo "sfbs:$(cat /var/lib/sfbs/rsync-password)" > /var/lib/sfbs/rsync-auth)
|
||||
chmod 600 /var/lib/sfbs/rsync-password
|
||||
[ -f "/var/lib/sfbs/rsync-auth" ] || (echo "sfbs:$(cat /var/lib/sfbs/rsync-password)" > /var/lib/sfbs/rsync-auth)
|
||||
chmod 600 /var/lib/sfbs/rsync-auth
|
Loading…
Add table
Add a link
Reference in a new issue