mirror of
https://github.com/k8snetworkplumbingwg/multus-cni.git
synced 2025-08-25 11:32:16 +00:00
Improve grep in entrypoint.sh to only find .conf and .conflist files
This commit is contained in:
parent
bae3adf158
commit
93237e6161
@ -151,7 +151,7 @@ fi
|
|||||||
|
|
||||||
if [ "$MULTUS_CONF_FILE" == "auto" ]; then
|
if [ "$MULTUS_CONF_FILE" == "auto" ]; then
|
||||||
echo "Generating Multus configuration file ..."
|
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
|
if [ "$MASTER_PLUGIN" == "" ]; then
|
||||||
echo "Error: Multus could not be configured: no master plugin was found."
|
echo "Error: Multus could not be configured: no master plugin was found."
|
||||||
exit 1;
|
exit 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user