changed to manual addon installation
This commit is contained in:
parent
db8225df50
commit
aaf70a7913
@ -1,11 +1,5 @@
|
|||||||
firefox:
|
firefox:
|
||||||
addons:
|
addons:
|
||||||
FoxyProxy Standard:
|
FoxyProxy Standard: https://addons.mozilla.org/firefox/downloads/latest/foxyproxy-standard/
|
||||||
url: https://addons.mozilla.org/firefox/downloads/latest/foxyproxy-standard/
|
KeePassXC-Browser: https://addons.mozilla.org/firefox/downloads/latest/keepassxc-browser/
|
||||||
name: foxyproxy@eric.h.jung.xpi
|
GNOME Shell integration: https://addons.mozilla.org/firefox/downloads/latest/gnome-shell-integration/
|
||||||
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
|
|
||||||
|
@ -18,6 +18,4 @@ repositories:
|
|||||||
|
|
||||||
firefox:
|
firefox:
|
||||||
addons:
|
addons:
|
||||||
Okta Browser Plugin:
|
Okta Browser Plugin: https://addons.mozilla.org/firefox/downloads/latest/okta-browser-plugin/
|
||||||
url: https://addons.mozilla.org/firefox/downloads/latest/okta-browser-plugin/
|
|
||||||
name: plugin@okta.com.xpi
|
|
||||||
|
@ -1,13 +1,11 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -aeo pipefail
|
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
|
if [[ $(grep -oP '(?<=\},\"name\":\"){{ name }}' {{ salt['user.info']( pillar['username'] ).home }}/.mozilla/firefox/*.default*/addons.json) ]]; then
|
||||||
printf "{{ name }} is already installed\n"
|
printf "{{ name }} is already installed\n"
|
||||||
else
|
else
|
||||||
printf "installing {{ name }}\n"
|
printf "installing {{ name }}\n"
|
||||||
curl -sLo /tmp/{{ args['name'] }} {{ args['url'] }}
|
firefox {{ url }}
|
||||||
firefox /tmp/{{ args['name'] }}
|
|
||||||
rm /tmp/{{ args['name'] }}
|
|
||||||
fi
|
fi
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
Loading…
Reference in New Issue
Block a user