improvements
This commit is contained in:
parent
623fc9d8f9
commit
9c47bb3c2d
@ -58,13 +58,15 @@ if [ ! -f /root/.ssh/id_rsa ]; then
|
||||
ssh-keygen
|
||||
fi
|
||||
cat /root/.ssh/id_rsa.pub
|
||||
read -n 1 -p "Create backup account now" unused
|
||||
|
||||
wget -q -O /usr/local/sbin/systembackup https://code.camijo.de/gmueller/server-scripts/raw/master/systembackup
|
||||
chmod +x /usr/local/sbin/systembackup
|
||||
if [ ! -f /etc/systembackup.conf ]; then
|
||||
PASSWD=`< /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c${1:-32}`
|
||||
cat >>/etc/systembackup.conf <<EOF
|
||||
REPOSITORY=
|
||||
PASSPHRASE=
|
||||
REPOSITORY=ssh://borg-@backup.camijo.de/~/repo
|
||||
PASSPHRASE=$PASSWD
|
||||
MYSQL=no
|
||||
EOF
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user