diff --git a/vault.sh b/vault.sh index e3b534d..a573abe 100755 --- a/vault.sh +++ b/vault.sh @@ -5,7 +5,7 @@ set -e -u # Keyserver to use. You need to trust this keyserver that the uid is not spoofed when receiving keys KEYSERVER="" -REPO_BASE_PATH="`pwd`/../ansible-gpg-vault-store" +REPO_BASE_PATH="`dirname "$0"`/../ansible-gpg-vault-store" # File in which the passphrase for the gpg vault is encrypted VAULT_PASS_FILE="$REPO_BASE_PATH/vault_passphrase.gpg" # File which contains a list of fingerprints to receive and encrypt the vault for