#!/bin/bash # Tailscale moved out of "configure core" into its own item, which records the # Core it joined in tailscale.conf rather than core.conf CORE_CONF="$HOME/.config/coredesktop/core.conf" TAILSCALE_CONF="$HOME/.config/coredesktop/tailscale.conf" [ -f "$CORE_CONF" ] || exit 0 CORE_TAILSCALE="$(source "$CORE_CONF" && echo "$CORE_TAILSCALE")" if [ -n "$CORE_TAILSCALE" ] && [ ! -f "$TAILSCALE_CONF" ]; then printf 'TAILSCALE_DOMAIN=%q\n' "$CORE_TAILSCALE" > "$TAILSCALE_CONF" || exit 1 fi sed -i '/^CORE_TAILSCALE=/d' "$CORE_CONF"