added directory creation for root

This commit is contained in:
2023-10-10 13:03:57 -05:00
parent d58bf9ab5d
commit 84fbf36e86

View File

@@ -10,7 +10,7 @@ apt update
apt-get install -y restic
mkdir -pv /home/akanealw/.config/wrestic
mkdir -pv /home/akanealw/restic/restore
mkdir /root/restic/restore
mkdir -pv /root/restic/restore
wget -O /usr/local/bin/wrestic http://192.168.1.50/files/wrestic/wrestic
wget -O /home/akanealw/.config/wrestic/wrestic.toml http://192.168.1.50/files/wrestic/wrestic.toml
sed -i "s/changeme/$HOSTNAME/g" /home/akanealw/.config/wrestic/wrestic.toml