Fixed path; automatic pull

This commit is contained in:
Giulio 2021-06-24 19:57:52 +02:00
parent a108a337f6
commit c0948ec920
3 changed files with 10 additions and 9 deletions

View File

@ -4,6 +4,6 @@ mkdir -p /home/user/backup/qubes
mkdir -p /home/user/backup/qubes/vm/mix/ mkdir -p /home/user/backup/qubes/vm/mix/
mkdir -p /home/user/backup/qubesadmin/ mkdir -p /home/user/backup/qubesadmin/
cp /usr/lib/python3.5/qubes/firewall.py /home/user/backup/qubes/ cp /usr/lib/python3.5/site-packages/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/site-packages/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/qubesadmin/firewall.py /home/user/backup/qubesadmin/

View File

@ -1,6 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
cp /home/user/backup/qubes/firewall.py /usr/lib/python3.5/qubes/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/qubes/vm/mix/net.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/qubesadmin/firewall.py cp /home/user/backup/qubesadmin/firewall.py /usr/lib/python3.5/site-packages/qubesadmin/firewall.py
systemctl restart qubesd systemctl restart qubesd

View File

@ -1,6 +1,7 @@
#!/usr/bin/env bash #!/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 'bash /home/user/pull.sh'
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/qubes/firewall.py' > /usr/lib/python3.5/site-packages/qubes/firewall.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 '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 systemctl restart qubesd