From 357d3401f8686ef3a25559a1a030809acbb6ded3 Mon Sep 17 00:00:00 2001 From: Jonas Forsberg Date: Sun, 2 Aug 2020 18:11:54 +0200 Subject: [PATCH] use runas instead of userdotf add -pdotf add -p --- salt/states/firefox.sls | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/states/firefox.sls b/salt/states/firefox.sls index 392baff..5b0e169 100644 --- a/salt/states/firefox.sls +++ b/salt/states/firefox.sls @@ -11,5 +11,5 @@ Downloading {{ name }} Firefox xpi: cmd.run: - name: {{ salt['user.info']( pillar['username'] ).home }}/bin/install_firefox_addon {{ args['name'] }} {{ args['url'] }} - unless: grep -oP '(?<=\},\"name\":\"){{ name }}' {{ salt['user.info']( pillar['username'] ).home }}/.mozilla/firefox/*.default*/addons.json - - user: {{ pillar['username'] }} + - runas: {{ pillar['username'] }} {% endfor %}