fix: stuff
This commit is contained in:
parent
35fa60d02e
commit
374f0ebe98
5 changed files with 5 additions and 23 deletions
10
node/install.sh
Executable file
10
node/install.sh
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue