This commit is contained in:
Strix 2024-05-23 20:21:18 +02:00
commit 3bc0ded5a0
7 changed files with 102 additions and 0 deletions

6
nodes/install.sh Executable file
View file

@ -0,0 +1,6 @@
#!/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)