&> /dev/null
This commit is contained in:
parent
029828ca73
commit
84592b9e21
1 changed files with 3 additions and 2 deletions
5
app.sh
5
app.sh
|
@ -61,7 +61,7 @@ while true ; do
|
|||
exit 2
|
||||
fi
|
||||
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
|
||||
echo sed
|
||||
pwd
|
||||
|
@ -74,12 +74,13 @@ while true ; do
|
|||
git commit -m "update config_${FQDN}" --quiet
|
||||
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
|
||||
IFS=$OLD_IFS
|
||||
|
||||
# loop
|
||||
echo "sleep..."
|
||||
sleep "$INTERVAL"
|
||||
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue