diff --git a/debian/debian-configure-wrestic.sh b/debian/debian-configure-wrestic.sh new file mode 100644 index 0000000..184544c --- /dev/null +++ b/debian/debian-configure-wrestic.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +if [ "$EUID" -ne 0 ] + then + echo "Please run as root" + exit +fi + +mkdir /home/akanealw/.config/wrestic +mkdir /home/akanealw/restic/restore +chown -R akanealw:akanealw /home/akanealw/.config +chown -R akanealw:akanealw /home/akanealw/restic +mkdir /root/restic/restore +wget -O /usr/sbin/local/wrestic +wget -O /home/akanealw/.config/wrestic/wrestic.toml