fix: install.sh line 318 — don't zero out env vars before --non-interactive reads them
The local initialization RC_URL="" on line 318 was destroying
environment variables before the non-interactive block (line 330+)
could read them via ${RC_URL:-${ROCKETCHAT_BASE_URL:-}}.
Fix: use ${RC_URL:-} to preserve values already set in the environment.
This commit is contained in:
+1
-1
@@ -315,7 +315,7 @@ msg found_hermes "$HERMES_DIR"
|
|||||||
# ─── Detect existing installation ─────────────────────────
|
# ─── Detect existing installation ─────────────────────────
|
||||||
ENV_FILE="$HOME/.config/hermes/rocketchat.env"
|
ENV_FILE="$HOME/.config/hermes/rocketchat.env"
|
||||||
HAVE_EXISTING=false
|
HAVE_EXISTING=false
|
||||||
RC_URL="" RC_BOT_USER="" RC_BOT_PASS="" RC_HOME_CHANNEL=""
|
RC_URL="${RC_URL:-}" RC_BOT_USER="${RC_BOT_USER:-}" RC_BOT_PASS="${RC_BOT_PASS:-}" RC_HOME_CHANNEL="${RC_HOME_CHANNEL:-}"
|
||||||
|
|
||||||
if [ -f "$ENV_FILE" ]; then
|
if [ -f "$ENV_FILE" ]; then
|
||||||
HAVE_EXISTING=true
|
HAVE_EXISTING=true
|
||||||
|
|||||||
Reference in New Issue
Block a user