From: Maximilian Friedersdorff Date: Tue, 26 Nov 2019 11:03:37 +0000 (+0000) Subject: Use different pword command on barium X-Git-Url: https://git.friedersdorff.com/?a=commitdiff_plain;h=b48f275fc9760807927745032b9884eaff639500;p=max%2Fsaltfiles.git Use different pword command on barium --- diff --git a/states/aerc/files/accounts.jinja b/states/aerc/files/accounts.jinja index f60d0b0..494da47 100644 --- a/states/aerc/files/accounts.jinja +++ b/states/aerc/files/accounts.jinja @@ -1,4 +1,9 @@ -{% set pword_cmd = "pass webmail.friedersdorff.com/max@friedersdorff.com | head -n 1" %} +{% if grains['host'] == "barium" %} + {% set pword_cmd = "PASSWORD_STORE_DIR=~/.password-store-personal pass webmail.friedersdorff.com/max@friedersdorff.com | head -n 1" %} +{% else %} + {% set pword_cmd = "pass webmail.friedersdorff.com/max@friedersdorff.com | head -n 1" %} +{% endif %} + [Personal] source = imaps://max%40friedersdorff.com@mail.friedersdorff.com source-cred-cmd = "{{ pword_cmd }}"