diff --git a/backup.sh b/backup.sh index a6170a5..c44fb0b 100755 --- a/backup.sh +++ b/backup.sh @@ -3,7 +3,9 @@ mkdir -p /home/user/backup/qubes mkdir -p /home/user/backup/qubes/vm/mix/ mkdir -p /home/user/backup/qubesadmin/ +mkdir -p /home/user/backup/qubesadmin/tools/ 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/ +cp /usr/lib/python3.5/site-packages/qubesadmin/tools/qvm_firewall.py /home/user/backup/qubesadmin/tools/ diff --git a/pull.sh b/pull.sh index 6199fac..d10d552 100755 --- a/pull.sh +++ b/pull.sh @@ -2,6 +2,8 @@ mkdir -p /tmp/core-admin/qubes/ mkdir -p /tmp/core-admin/qubes/vm/mix/ mkdir -p /tmp/core-admin-client/qubesadmin/ +mkdir -p /tmp/core-admin-client/qubesadmin/tools/ scp g@192.168.88.10:/mnt/c/Users/g/Documents/GSOC/sources/core-admin/qubes/firewall.py /tmp/core-admin/qubes/firewall.py scp g@192.168.88.10:/mnt/c/Users/g/Documents/GSOC/sources/core-admin/qubes/vm/mix/net.py /tmp/core-admin/qubes/vm/mix/net.py scp g@192.168.88.10:/mnt/c/Users/g/Documents/GSOC/sources/core-admin-client/qubesadmin/firewall.py /tmp/core-admin-client/qubesadmin/firewall.py +scp g@192.168.88.10:/mnt/c/Users/g/Documents/GSOC/sources/core-admin-client/qubesadmin/tools/qvm_firewall.py /tmp/core-admin-client/qubesadmin/tools/qvm_firewall.py diff --git a/restore.sh b/restore.sh index 8e3d472..bb6f9e4 100755 --- a/restore.sh +++ b/restore.sh @@ -3,4 +3,5 @@ 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 +cp /home/user/backup/qubesadmin/tools/qvm_firewall.py /usr/lib/python3.5/site-packages/qubesadmin/tools/qvm_firewall.py systemctl restart qubesd diff --git a/update.sh b/update.sh index 1bcceab..473dbeb 100755 --- a/update.sh +++ b/update.sh @@ -4,4 +4,5 @@ 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 +qvm-run --pass-io sys-net 'cat /tmp/core-admin-client/qubesadmin/tools/qvm_firewall.py' > /usr/lib/python3.5/site-packages/qubesadmin/tools/qvm_firewall.py systemctl restart qubesd