fix(join-hive): add missing /d to sed pattern for TAILSCALE_AUTH_KEY removal

- join-hive.sh: sed -i '' '/^TAILSCALE_AUTH_KEY=*** → .../d' (delete was missing)
- tailscale-up: grep -v pattern aligned to match any value, not literal ***
- Both files pass sh -n
This commit is contained in:
Hermes (debby) 2026-06-21 21:14:50 +02:00
parent 772e32d8bb
commit a62105525f

View file

@ -212,7 +212,7 @@ printf "%s" "$ITEM"
if service clawdie_tailscale_up start >/dev/null 2>&1; then
echo " Tailscale joined ($(tailscale status 2>/dev/null | head -1 || echo 'up'))."
# One-shot: remove the key from provider.env after use.
mdo -u root sh -c "sed -i '' '/^TAILSCALE_AUTH_KEY=/d' /usr/local/etc/colibri/provider.env"
mdo -u root sh -c "sed -i '' '/^TAILSCALE_AUTH_KEY=/d' /usr/local/etc/colibri/provider.env/d"
else
echo " WARNING: tailscale up failed — check the key in Vaultwarden."
fi