PATH="$DIR/toolbox/scripts:$PATH"
fi
+p() {
+ if [ -z "$2" ]; then
+ pass show Travail/Fretlink/$1
+ else
+ pass show Travail/Fretlink/$1 | grep "^$2:" | sed -e "s/^$2: //"
+ fi | head -n1
+}
+
build_macaroon() {
if [ "$1" = "--old" ]; then
shift
export TEMPLATES_ASSETS_BASE_URL="http://dummy/"
export TRANSPOREON_USER="{{ lookup('passwordstore', 'Travail/Fretlink/Transporeon/ApiTest subkey=Login') }}"
export TRANSPOREON_PASSWORD="{{ lookup('passwordstore', 'Travail/Fretlink/Transporeon/ApiTest') }}"
+ export TRANSPOREON_HOST="api.test.transporeon.com"
export TRANSPOREON_CALLBACK_USER="{{ lookup('passwordstore', 'Travail/Fretlink/Transporeon/NotifierCallbackTest subkey=Login') }}"
export TRANSPOREON_CALLBACK_PASSWORD="{{ lookup('passwordstore', 'Travail/Fretlink/Transporeon/NotifierCallbackTest') }}"
#!/bin/bash
-if [ -n "$DISPLAY" ]; then
- export XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority"
- read protocol cookie
- xauth remove $DISPLAY
- xauth add $DISPLAY "$protocol" "$cookie"
+if read proto cookie && [ -n "$DISPLAY" ]; then
+ if [ `echo $DISPLAY | cut -c1-10` = "localhost:" ]; then
+ echo add unix:`echo $DISPLAY | cut -c11-` $proto $cookie
+ else
+ echo add $DISPLAY "$protocol" "$cookie"
+ fi | xauth -q -
fi