File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 230230echo " Deploying config..."
231231
232232# Determine who invoked this (the admin user)
233- DEPLOY_USER=" ${SUDO_USER:- $(whoami)} "
233+ # BAUDBOT_CONFIG_USER env var overrides detection (used by install.sh)
234+ DEPLOY_USER=" ${BAUDBOT_CONFIG_USER:- ${SUDO_USER:- $(whoami)} } "
234235DEPLOY_HOME=$( getent passwd " $DEPLOY_USER " | cut -d: -f6 2> /dev/null || echo " " )
235236ADMIN_CONFIG=" $DEPLOY_HOME /.baudbot/.env"
236237
Original file line number Diff line number Diff line change @@ -193,7 +193,7 @@ BAUDBOT_CONFIG_USER="$ADMIN_USER" bash "$REPO_DIR/bin/config.sh"
193193# Deploy the config (and everything else) to the agent runtime.
194194# This copies ~/.baudbot/.env → agent's ~/.config/.env with correct perms.
195195header " Deploy"
196- bash " $REPO_DIR /bin/deploy.sh"
196+ BAUDBOT_CONFIG_USER= " $ADMIN_USER " bash " $REPO_DIR /bin/deploy.sh"
197197
198198# ── Launch ───────────────────────────────────────────────────────────────────
199199
You can’t perform that action at this time.
0 commit comments