mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-10 02:25:56 +00:00
fix(dev): export auth env vars in hot-dev script
Use load_env_file for /etc/pulse/.env to properly export PULSE_AUTH_USER and PULSE_AUTH_PASS to the backend process.
This commit is contained in:
+1
-4
@@ -203,10 +203,7 @@ if [[ -f "${ROOT_DIR}/mock.env" ]]; then
|
||||
fi
|
||||
|
||||
if [[ -f /etc/pulse/.env ]] && [[ -r /etc/pulse/.env ]]; then
|
||||
set +u
|
||||
# shellcheck disable=SC1091
|
||||
source /etc/pulse/.env 2>/dev/null || true
|
||||
set -u
|
||||
load_env_file "/etc/pulse/.env"
|
||||
echo "Auth configuration loaded from /etc/pulse/.env"
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user