Browse Source

qvm_firewall.py support

Giulio 4 months ago
parent
commit
9be929091c
4 changed files with 6 additions and 0 deletions
  1. 2 0
      backup.sh
  2. 2 0
      pull.sh
  3. 1 0
      restore.sh
  4. 1 0
      update.sh

+ 2 - 0
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/

+ 2 - 0
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

+ 1 - 0
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

+ 1 - 0
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