6 lines
No EOL
304 B
Bash
Executable file
6 lines
No EOL
304 B
Bash
Executable file
#!/bin/sh
|
|
|
|
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) |