Fix tinyauth configuration parsing (#4901)

Co-authored-by: Bidyut Mukherjee <bidyut@bidyut-macbook-pro.lan>
This commit is contained in:
Bidyut Mukherjee
2025-06-02 01:25:09 -05:00
committed by GitHub
parent 60ae9bba5d
commit 04ee11aab7

View File

@ -61,7 +61,15 @@ pidfile="/var/run/tinyauth.pid"
start_pre() {
if [ -f "/opt/tinyauth/.env" ]; then
export \$(grep -v '^#' /opt/tinyauth/.env | xargs)
while IFS= read -r line || [ -n "$line" ]; do
[ -z "$line" ] && continue
case "$line" in
'#'*)
continue
;;
esac
export "$line"
done < "/opt/tinyauth/.env"
fi
}