mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-07-08 15:07:38 +00:00
Fix tinyauth configuration parsing (#4901)
Co-authored-by: Bidyut Mukherjee <bidyut@bidyut-macbook-pro.lan>
This commit is contained in:
@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user