From 2c921cc5eab800209475ae95837939f7b405aceb Mon Sep 17 00:00:00 2001 From: akanealw Date: Tue, 10 Oct 2023 13:28:37 -0500 Subject: [PATCH] testing --- debian/debian-configure-wrestic.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/debian/debian-configure-wrestic.sh b/debian/debian-configure-wrestic.sh index f6dd1c0..b65d27f 100644 --- a/debian/debian-configure-wrestic.sh +++ b/debian/debian-configure-wrestic.sh @@ -13,7 +13,10 @@ mkdir -pv /home/akanealw/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/changemepls/$hostname/g" /home/akanealw/.config/wrestic/wrestic.toml +sed -r 's/(resticbackups)(.*)/\1\L\2\E/g' /home/akanealw/.config/wrestic/wrestic.toml > /home/akanealw/.config/wrestic/wrestic2.toml +mv /home/akanealw/.config/wrestic/wrestic.toml /home/akanealw/.config/wrestic/wresticbackup.toml +mv /home/akanealw/.config/wrestic/wrestic2.toml /home/akanealw/.config/wrestic/wrestic.toml +rm .config/wrestic/wresticbackup.toml chown -R akanealw:akanealw /home/akanealw/.config chown -R akanealw:akanealw /home/akanealw/restic chmod +x /usr/local/bin/wrestic