Fix tinyauth

This commit is contained in:
tremor021 2025-06-10 18:39:26 +02:00
parent 8b750778dc
commit 5d302a4db6

View File

@ -60,18 +60,17 @@ command_background="true"
pidfile="/var/run/tinyauth.pid" pidfile="/var/run/tinyauth.pid"
start_pre() { start_pre() {
if [ -f "/opt/tinyauth/.env" ]; then if [ -f "/opt/tinyauth/.env" ]; then
line="" while IFS= read -r line || [ -n "${line-}" ]; do
while IFS= read -r line || [ -n "${line-}" ]; do [ -z "${line-}" ] && continue
[ -z "$line" ] && continue case "${line-}" in
case "$line" in '#'*)
'#'*) continue
continue ;;
;; esac
esac export "$line"
export "$line" done < "/opt/tinyauth/.env"
done < "/opt/tinyauth/.env" fi
fi
} }
depend() { depend() {