From c0948ec920bff88e9020fa874be55eafa356dfa6 Mon Sep 17 00:00:00 2001 From: Giulio Date: Thu, 24 Jun 2021 19:57:52 +0200 Subject: [PATCH] Fixed path; automatic pull --- backup.sh | 6 +++--- restore.sh | 6 +++--- update.sh | 7 ++++--- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/backup.sh b/backup.sh index 8fc1ddf..a6170a5 100755 --- a/backup.sh +++ b/backup.sh @@ -4,6 +4,6 @@ mkdir -p /home/user/backup/qubes mkdir -p /home/user/backup/qubes/vm/mix/ mkdir -p /home/user/backup/qubesadmin/ -cp /usr/lib/python3.5/qubes/firewall.py /home/user/backup/qubes/ -cp /usr/lib/python3.5/qubes/vm/mix/net.py /home/user/backup/qubes/vm/mix/ -cp /usr/lib/python3.5/qubesadmin/firewall.py /home/user/backup/qubesadmin/ +cp /usr/lib/python3.5/site-packages/qubes/firewall.py /home/user/backup/qubes/ +cp /usr/lib/python3.5/site-packages/qubes/vm/mix/net.py /home/user/backup/qubes/vm/mix/ +cp /usr/lib/python3.5/site-packages/qubesadmin/firewall.py /home/user/backup/qubesadmin/ diff --git a/restore.sh b/restore.sh index 36a6a62..8e3d472 100755 --- a/restore.sh +++ b/restore.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -cp /home/user/backup/qubes/firewall.py /usr/lib/python3.5/qubes/firewall.py -cp /home/user/backup/qubes/vm/mix/net.py /usr/lib/python3.5/qubes/vm/mix/net.py -cp /home/user/backup/qubesadmin/firewall.py /usr/lib/python3.5/qubesadmin/firewall.py +cp /home/user/backup/qubes/firewall.py /usr/lib/python3.5/site-packages/qubes/firewall.py +cp /home/user/backup/qubes/vm/mix/net.py /usr/lib/python3.5/site-packages/qubes/vm/mix/net.py +cp /home/user/backup/qubesadmin/firewall.py /usr/lib/python3.5/site-packages/qubesadmin/firewall.py systemctl restart qubesd diff --git a/update.sh b/update.sh index 2120029..1bcceab 100755 --- a/update.sh +++ b/update.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash -qvm-run --pass-io sys-net 'cat /tmp/core-admin/qubes/firewall.py' > /usr/lib/python3.5/qubes/firewall.py -qvm-run --pass-io sys-net 'cat /tmp/core-admin/qubes/vm/mix/net.py' > /usr/lib/python3.5/qubes/vm/mix/net.py -qvm-run --pass-io sys-net 'cat /tmp/core-admin-client/qubesadmin/firewall.py' > /usr/lib/python3.5/qubesadmin/firewall.py +qvm-run --pass-io sys-net 'bash /home/user/pull.sh' +qvm-run --pass-io sys-net 'cat /tmp/core-admin/qubes/firewall.py' > /usr/lib/python3.5/site-packages/qubes/firewall.py +qvm-run --pass-io sys-net 'cat /tmp/core-admin/qubes/vm/mix/net.py' > /usr/lib/python3.5/site-packages/qubes/vm/mix/net.py +qvm-run --pass-io sys-net 'cat /tmp/core-admin-client/qubesadmin/firewall.py' > /usr/lib/python3.5/site-packages/qubesadmin/firewall.py systemctl restart qubesd