File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -84,7 +84,8 @@ if command -v varlock &>/dev/null || [ -x "$BAUDBOT_HOME/.varlock/bin/varlock" ]
8484 pass " varlock is installed"
8585 if [ -f " $BAUDBOT_HOME /.varlock/config.json" ] && grep -q ' "anonymousId"' " $BAUDBOT_HOME /.varlock/config.json" ; then
8686 warn " $BAUDBOT_HOME /.varlock/config.json includes anonymousId (export VARLOCK_TELEMETRY_DISABLED=1 or remove this field)"
87- elif [ -f " $BAUDBOT_HOME /.config/varlock/config.json" ] && grep -q ' "anonymousId"' " $BAUDBOT_HOME /.config/varlock/config.json" ; then
87+ fi
88+ if [ -f " $BAUDBOT_HOME /.config/varlock/config.json" ] && grep -q ' "anonymousId"' " $BAUDBOT_HOME /.config/varlock/config.json" ; then
8889 warn " $BAUDBOT_HOME /.config/varlock/config.json includes anonymousId (export VARLOCK_TELEMETRY_DISABLED=1 or remove this field)"
8990 fi
9091else
Original file line number Diff line number Diff line change 261261
262262# Newer varlock installers place the binary under ~/.config/varlock/bin.
263263# Keep a compatibility link at ~/.varlock/bin/varlock for existing runtime scripts.
264+ # If a real legacy binary already exists, preserve it (do not replace with symlink).
264265if [ -x " $AGENT_VARLOCK_CONFIG_BIN " ]; then
265- sudo -u baudbot_agent bash -c " mkdir -p '$BAUDBOT_HOME /.varlock/bin' && ln -sf '$AGENT_VARLOCK_CONFIG_BIN ' '$AGENT_VARLOCK '"
266+ if [ -x " $AGENT_VARLOCK " ] && [ ! -L " $AGENT_VARLOCK " ]; then
267+ echo " Keeping existing legacy varlock binary at $AGENT_VARLOCK "
268+ else
269+ sudo -u baudbot_agent bash -c " mkdir -p '$BAUDBOT_HOME /.varlock/bin' && ln -sfn '$AGENT_VARLOCK_CONFIG_BIN ' '$AGENT_VARLOCK '"
270+ fi
266271fi
267272
268273echo " === Publishing initial git-free /opt release ==="
You can’t perform that action at this time.
0 commit comments