Added error handeling for init.sh

This commit is contained in:
2022-07-02 22:09:33 +02:00
parent d47e3d8ebe
commit ec7705f5fc
13 changed files with 14 additions and 16 deletions

View File

@@ -1,6 +1,6 @@
#!/bin/bash
#Get Resources
curl -L --retry 7 --retry-delay 5 http://ftp.debian.org/debian/pool/main/r/rsnapshot/rsnapshot_1.4.2-1_all.deb -o /opt/Setup/rsnapshot.deb
curl -L --retry 7 --retry-delay 5 http://ftp.debian.org/debian/pool/main/r/rsnapshot/rsnapshot_1.4.2-1_all.deb -o /opt/Setup/rsnapshot.deb || exit 1
#Install elkarbackup
apt install /opt/Setup/rsnapshot.deb elkarbackup -y
echo "Apt intall being unable to configure elkarbackup is expected"