Skip to content

Commit

Permalink
Skip empty lines in config file
Browse files Browse the repository at this point in the history
  • Loading branch information
dantefromhell authored Dec 18, 2023
1 parent ddefb41 commit e7ddc52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/docker-entrypoint.d/95-configure-humhub.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ if [ ! -s "${CONFIG_FILE}" ]; then
fi

# Actually do the stuff.
grep -v '^#' "${CONFIG_FILE}" | while read -r LINE; do
grep -vE '^(\s*$|#)' "${CONFIG_FILE}" | while read -r LINE; do
# su -s /bin/sh nginx -c "php yii settings/set "${moduleId}" "${name}" "${value}" --interactive=0"
# su -s /bin/sh nginx -c "php yii settings/set ${LINE} --interactive=0"
echo "Found config line: ${LINE}"
Expand Down

0 comments on commit e7ddc52

Please sign in to comment.