Merge pull request #162 from Kusanagi9999/improved-grep-to-search-for-conffiles

Improve grep in entrypoint.sh to only find .conf and .conflist files
This commit is contained in:
Doug Smith 2018-10-10 14:42:42 -04:00 committed by GitHub
commit 1caddaef4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;