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

@ -50,8 +50,9 @@ if [ $1 -eq 1 ]; then
qubesctl --skip-dom0 --targets=sys-mullvad state.apply mullvad.configure
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_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=mullvad-dvm state.apply mullvad.browser_client
fi
%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:
file.managed:
- 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:
file.managed:
- source: