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:
parent
772e32d8bb
commit
a62105525f
1 changed files with 1 additions and 1 deletions
|
|
@ -212,7 +212,7 @@ printf "%s" "$ITEM"
|
||||||
if service clawdie_tailscale_up start >/dev/null 2>&1; then
|
if service clawdie_tailscale_up start >/dev/null 2>&1; then
|
||||||
echo " Tailscale joined ($(tailscale status 2>/dev/null | head -1 || echo 'up'))."
|
echo " Tailscale joined ($(tailscale status 2>/dev/null | head -1 || echo 'up'))."
|
||||||
# One-shot: remove the key from provider.env after use.
|
# 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
|
else
|
||||||
echo " WARNING: tailscale up failed — check the key in Vaultwarden."
|
echo " WARNING: tailscale up failed — check the key in Vaultwarden."
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue