Skip to content

Commit

Permalink
Zero or more not one or more
Browse files Browse the repository at this point in the history
  • Loading branch information
thespad committed Jan 24, 2024
1 parent 2f14bd5 commit 239d0ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion root/etc/s6-overlay/s6-rc.d/init-healthchecks-config/run
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ if [[ -z ${SITE_ROOT} ]] && ! grep -q "^SITE_ROOT" /config/local_settings.py; th
echo "No SITE_ROOT provided, halting init"
sleep infinity
elif [[ -z ${SITE_ROOT} ]] && grep -q "^SITE_ROOT" /config/local_settings.py; then
SITE_ROOT=$(grep -Po "^SITE_ROOT\s+=\s+\K(.*)" /config/local_settings.py | tr -d '"')
SITE_ROOT=$(grep -Po "^SITE_ROOT\s*=\s*\K(.*)" /config/local_settings.py | tr -d '"')
fi

if [[ ! -f "/config/local_settings.py" ]] || [[ "${REGENERATE_SETTINGS,,}" == "true" ]]; then
Expand Down

0 comments on commit 239d0ae

Please sign in to comment.