added if statement for wrestic
This commit is contained in:
5
debian/debian-download-configure-wrestic.sh
vendored
5
debian/debian-download-configure-wrestic.sh
vendored
@@ -6,6 +6,8 @@ if [ "$EUID" -ne 0 ]
|
|||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ ! -f /home/akanealw/.config/wrestic/wrestic.toml ]]
|
||||||
|
then
|
||||||
apt update
|
apt update
|
||||||
apt-get install -y restic
|
apt-get install -y restic
|
||||||
mkdir -pv /home/akanealw/.config/wrestic
|
mkdir -pv /home/akanealw/.config/wrestic
|
||||||
@@ -24,3 +26,6 @@ chown -R akanealw:akanealw /home/akanealw/restic
|
|||||||
chown -R akanealw:akanealw /home/akanealw/scripts
|
chown -R akanealw:akanealw /home/akanealw/scripts
|
||||||
chmod +x /home/akanealw/scripts/wrestic-backup-to-truenas.sh
|
chmod +x /home/akanealw/scripts/wrestic-backup-to-truenas.sh
|
||||||
chmod +x /usr/local/bin/wrestic
|
chmod +x /usr/local/bin/wrestic
|
||||||
|
else
|
||||||
|
echo "Wrestic is already configured."
|
||||||
|
fi
|
||||||
Reference in New Issue
Block a user