fix: stuff

This commit is contained in:
strix 2025-07-17 18:54:50 +02:00
parent 35fa60d02e
commit 374f0ebe98
5 changed files with 5 additions and 23 deletions

10
node/install.sh Executable file
View file

@ -0,0 +1,10 @@
#!/bin/sh
[ -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)
cp ./etc/rsyncd.conf /etc/rsyncd.conf
chmod 600 /var/lib/sfbs/rsync-password
chmod 600 /var/lib/sfbs/rsync-auth