__netbox_uwsgi: fix if only --bind-to given

If the here-document is empty because no file could be found, an empty
line will be read. The new line of code will skip in those cases.
This commit is contained in:
matze 2020-09-06 18:39:07 +02:00
parent c9e4e8d7dc
commit 0afc7136f8
1 changed files with 2 additions and 0 deletions

View File

@ -30,6 +30,8 @@ EOF
# special protocol to bind
while read -r param; do
if [ -z "$param" ]; then continue; fi # ignore empty lines from the here-doc
multi_options "$(basename "$param" | awk -F'-' '{print $1}')-socket" "$param"
socket_changes="yes"