init
This commit is contained in:
commit
3bc0ded5a0
7 changed files with 102 additions and 0 deletions
6
nodes/install.sh
Executable file
6
nodes/install.sh
Executable 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)
|
Loading…
Add table
Add a link
Reference in a new issue