uccpass: use local version of PATH and pass GPG_OPTS to use trust-model=always
authorDavid Adam <zanchey@ucc.gu.uwa.edu.au>
Fri, 17 Apr 2015 03:10:47 +0000 (11:10 +0800)
committerDavid Adam <zanchey@ucc.gu.uwa.edu.au>
Fri, 17 Apr 2015 03:10:47 +0000 (11:10 +0800)
uccpass

diff --git a/uccpass b/uccpass
index fc83554..7f7bb9d 100755 (executable)
--- a/uccpass
+++ b/uccpass
@@ -41,6 +41,9 @@ init () {
     export GIT_AUTHOR_NAME="`getent passwd $USER | cut -d: -f5`"
 
     export GPG_TTY=`tty`
+    export PASSWORD_STORE_GPG_OPTS="--trust-model always"
+
+    export PATH=$UCCPASS_ROOT/pass/bin:$PATH
 
     if [ -n "$UCCPASS_DEBUG" ]; then set -x; fi
 }

UCC git Repository :: git.ucc.asn.au