From 6eba74ff7b4b0895f92ff7b29003d5ce1c8a1220 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Mon, 25 Jun 2018 10:57:45 +0200 Subject: [PATCH] Specify path for systemctl execution Signed-off-by: Knut Ahlers --- bin/check_config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/check_config b/bin/check_config index b4e8820..e77340c 100755 --- a/bin/check_config +++ b/bin/check_config @@ -41,7 +41,7 @@ for REPO in ${REPOS[@]}; do [ -f ~/.cfg/${REPO}/FETCH_HEAD ] && LAST_FETCH=$(stat ${STAT_PARM} ~/.cfg/${REPO}/FETCH_HEAD) if [ $(($(date +%s) - LAST_FETCH)) -gt ${FETCH_INTERVAL} ] || [ $(wc -c ~/.cfg/${REPO}/FETCH_HEAD | cut -d' ' -f1) -eq 0 ]; then - vault-sshadd ${SSH_KEY} 2>&1 >/dev/null || { + ${HOME}/bin/vault-sshadd ${SSH_KEY} 2>&1 >/dev/null || { echo "Unable to load key ${SSH_KEY}" exit 1 }