Mullvad - ensure Browser is updated in clients

This commit is contained in:
unman 2024-06-13 15:29:12 +00:00
parent 746564f222
commit 1cac51ac2f
No known key found for this signature in database
GPG Key ID: FDD1B8244731B36C
3 changed files with 19 additions and 2 deletions

View File

@ -4,7 +4,7 @@ Release: 3%{?dist}
Summary: Set up a Mullvad qube and disposable template Summary: Set up a Mullvad qube and disposable template
License: GPLv3+ License: GPLv3+
SOURCE0: mullvad SOURCE0: mullvad
%description %description
This package creates a template, loaded with the MullvadVPN GUI and Mullvad Browser. This package creates a template, loaded with the MullvadVPN GUI and Mullvad Browser.
@ -50,8 +50,9 @@ if [ $1 -eq 1 ]; then
qubesctl --skip-dom0 --targets=sys-mullvad state.apply mullvad.configure qubesctl --skip-dom0 --targets=sys-mullvad state.apply mullvad.configure
elif [ $1 -eq 2 ]; then elif [ $1 -eq 2 ]; then
qubesctl --skip-dom0 --targets=template-mullvad state.apply mullvad.browser qubesctl --skip-dom0 --targets=template-mullvad state.apply mullvad.browser
qubesctl --skip-dom0 --targets=template-mullvad state.apply mullvad.browser_client qubesctl --skip-dom0 --targets=sys-mullvad state.apply mullvad.browser_client
qubesctl --skip-dom0 --targets=sys-mullvad state.apply mullvad.configure qubesctl --skip-dom0 --targets=sys-mullvad state.apply mullvad.configure
qubesctl --skip-dom0 --targets=mullvad-dvm state.apply mullvad.browser_client
fi fi
%postun %postun

View File

@ -1,3 +1,13 @@
delete_old_mullvad_browser_version:
file.absent:
- name: '/etc/skel/mullvad-browser'
{% for archive in salt['file.find']('/etc/skel/Downloads/', name='mullvad_browser*') %}
{{ archive }}_remove:
file.absent:
- name: {{ archive }}
{% endfor %}
/etc/skel/Downloads/mullvad_browser-linux-x86_64-13.0.16.tar.xz: /etc/skel/Downloads/mullvad_browser-linux-x86_64-13.0.16.tar.xz:
file.managed: file.managed:
- source: - source:

View File

@ -1,3 +1,9 @@
{% for archive in salt['file.find']('/home/user/Downloads/', name='mullvad_browser*') %}
{{ archive }}_remove:
file.absent:
- name: {{ archive }}
{% endfor %}
/home/user/Downloads/mullvad_browser-linux-x86_64-13.0.16.tar.xz: /home/user/Downloads/mullvad_browser-linux-x86_64-13.0.16.tar.xz:
file.managed: file.managed:
- source: - source: