changed to manual addon installation

This commit is contained in:
Jonas Forsberg 2020-08-03 16:17:17 +02:00
parent db8225df50
commit aaf70a7913
No known key found for this signature in database
GPG Key ID: F2E9818C70350CC9
3 changed files with 6 additions and 16 deletions

View File

@ -1,11 +1,5 @@
firefox:
addons:
FoxyProxy Standard:
url: https://addons.mozilla.org/firefox/downloads/latest/foxyproxy-standard/
name: foxyproxy@eric.h.jung.xpi
KeePassXC-Browser:
url: https://addons.mozilla.org/firefox/downloads/latest/keepassxc-browser/
name: keepassxc-browser@keepassxc.org.xpi
GNOME Shell integration:
url: https://addons.mozilla.org/firefox/downloads/latest/gnome-shell-integration/
name: chrome-gnome-shell@gnome.org.xpi
FoxyProxy Standard: https://addons.mozilla.org/firefox/downloads/latest/foxyproxy-standard/
KeePassXC-Browser: https://addons.mozilla.org/firefox/downloads/latest/keepassxc-browser/
GNOME Shell integration: https://addons.mozilla.org/firefox/downloads/latest/gnome-shell-integration/

View File

@ -18,6 +18,4 @@ repositories:
firefox:
addons:
Okta Browser Plugin:
url: https://addons.mozilla.org/firefox/downloads/latest/okta-browser-plugin/
name: plugin@okta.com.xpi
Okta Browser Plugin: https://addons.mozilla.org/firefox/downloads/latest/okta-browser-plugin/

View File

@ -1,13 +1,11 @@
#!/bin/bash
set -aeo pipefail
{% for name, args in pillar['firefox']['addons'].items() %}
{% for name, url in pillar['firefox']['addons'].items() %}
if [[ $(grep -oP '(?<=\},\"name\":\"){{ name }}' {{ salt['user.info']( pillar['username'] ).home }}/.mozilla/firefox/*.default*/addons.json) ]]; then
printf "{{ name }} is already installed\n"
else
printf "installing {{ name }}\n"
curl -sLo /tmp/{{ args['name'] }} {{ args['url'] }}
firefox /tmp/{{ args['name'] }}
rm /tmp/{{ args['name'] }}
firefox {{ url }}
fi
{% endfor %}