Skip to content
Permalink
Browse files

Uses atomic operation for writing config file (#430)

  • Loading branch information
dougbtv committed Jan 17, 2020
1 parent c35c4b7 commit c534b7d364888141570beedc17628bb8f57a311b
Showing with 3 additions and 1 deletion.
  1. +3 −1 images/entrypoint.sh
@@ -331,7 +331,9 @@ if [ "$MULTUS_CONF_FILE" == "auto" ]; then
}
EOF
)
echo $CONF > $CNI_CONF_DIR/00-multus.conf
tmpfile=$(mktemp)
echo $CONF > $tmpfile
mv $tmpfile $CNI_CONF_DIR/00-multus.conf
log "Config file created @ $CNI_CONF_DIR/00-multus.conf"
echo $CONF

0 comments on commit c534b7d

Please sign in to comment.
You can’t perform that action at this time.