&> /dev/null

This commit is contained in:
Michael Grote 2023-07-21 21:29:27 +02:00
parent 029828ca73
commit 84592b9e21

5
app.sh
View file

@ -61,7 +61,7 @@ while true ; do
exit 2 exit 2
fi fi
echo "export $FQDN config" echo "export $FQDN config"
ssh -n -o StrictHostKeyChecking=no -i "$SSH_KEY_PATH" "${USERNAME}@${FQDN}" "/export show-sensitive" > "config_${FQDN}.rsc" 2> /dev/null ssh -n -o StrictHostKeyChecking=no -i "$SSH_KEY_PATH" "${USERNAME}@${FQDN}" "/export show-sensitive" > "config_${FQDN}.rsc" &> /dev/null
# entferne Datumszeile # entferne Datumszeile
echo sed echo sed
pwd pwd
@ -74,12 +74,13 @@ while true ; do
git commit -m "update config_${FQDN}" --quiet git commit -m "update config_${FQDN}" --quiet
done <<< "$DEVICES" done <<< "$DEVICES"
GIT_SSH_COMMAND="ssh -o StrictHostKeyChecking=no -i $GIT_REPO_DEPLOY_KEY" git push GIT_SSH_COMMAND="ssh -o StrictHostKeyChecking=no -i $GIT_REPO_DEPLOY_KEY" git push &> /dev/null
# Restore the original IFS value # Restore the original IFS value
IFS=$OLD_IFS IFS=$OLD_IFS
# loop # loop
echo "sleep..."
sleep "$INTERVAL" sleep "$INTERVAL"
done done