This commit is contained in:
Michael Grote 2023-07-21 21:20:49 +02:00
parent f52d7f0403
commit a037d596a8

4
app.sh
View file

@ -42,7 +42,7 @@ while true ; do
echo clone
pwd
git clone "$GIT_REPO_URL" "$GIT_REPO_PATH" --quiet
GIT_SSH_COMMAND="ssh -o StrictHostKeyChecking=no -i $GIT_REPO_DEPLOY_KEY" git clone "$GIT_REPO_URL" "$GIT_REPO_PATH" --quiet
cd "$GIT_REPO_PATH"
# Save the current value of IFS to restore later
@ -74,7 +74,7 @@ while true ; do
git commit -m "update config_${FQDN}" --quiet
done <<< "$DEVICES"
git push
GIT_SSH_COMMAND="ssh -o StrictHostKeyChecking=no -i $GIT_REPO_DEPLOY_KEY" git push
# Restore the original IFS value
IFS=$OLD_IFS