Skip to content

Commit

Permalink
Merge pull request #162 from Kusanagi9999/improved-grep-to-search-for…
Browse files Browse the repository at this point in the history
…-conffiles

Improve grep in entrypoint.sh to only find .conf and .conflist files
  • Loading branch information
dougbtv committed Oct 10, 2018
2 parents cee576c + 93621f7 commit 1caddae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion images/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ fi

if [ "$MULTUS_CONF_FILE" == "auto" ]; then
echo "Generating Multus configuration file ..."
MASTER_PLUGIN="$(ls $CNI_CONF_DIR | grep .conf | head -1)"
MASTER_PLUGIN="$(ls $CNI_CONF_DIR | grep -E '\.conf(list)?$' | head -1)"
if [ "$MASTER_PLUGIN" == "" ]; then
echo "Error: Multus could not be configured: no master plugin was found."
exit 1;
Expand Down

0 comments on commit 1caddae

Please sign in to comment.