Skip to content

Commit 04ee11a

Browse files
gokussjxBidyut Mukherjee
andauthored
Fix tinyauth configuration parsing (#4901)
Co-authored-by: Bidyut Mukherjee <[email protected]>
1 parent 60ae9bb commit 04ee11a

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

install/alpine-tinyauth-install.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,15 @@ pidfile="/var/run/tinyauth.pid"
6161
6262
start_pre() {
6363
if [ -f "/opt/tinyauth/.env" ]; then
64-
export \$(grep -v '^#' /opt/tinyauth/.env | xargs)
64+
while IFS= read -r line || [ -n "$line" ]; do
65+
[ -z "$line" ] && continue
66+
case "$line" in
67+
'#'*)
68+
continue
69+
;;
70+
esac
71+
export "$line"
72+
done < "/opt/tinyauth/.env"
6573
fi
6674
}
6775

0 commit comments

Comments
 (0)