mirror of
https://github.com/tailscale-dev/deck-tailscale.git
synced 2025-10-22 15:38:15 +00:00

- Create symlinks in /usr/local/bin for immediate global access - Ensure /usr/local/bin directory exists with mkdir -p - Set proper executable permissions on binaries - Keep profile.d approach as fallback and source for current session - Update uninstall script to remove specific files and clean up symlinks - Use rm -rf for systemd override directory cleanup Fixes #38
14 lines
501 B
Bash
14 lines
501 B
Bash
systemctl stop tailscaled
|
|
systemctl disable tailscaled
|
|
rm -f /etc/systemd/system/tailscaled.service
|
|
rm -rf /etc/systemd/system/tailscaled.service.d
|
|
rm -f /etc/default/tailscaled
|
|
rm -f /etc/profile.d/tailscale.sh
|
|
rm -f /usr/local/bin/tailscale
|
|
rm -f /usr/local/bin/tailscaled
|
|
# Remove specific Tailscale binaries
|
|
rm -f /opt/tailscale/tailscale
|
|
rm -f /opt/tailscale/tailscaled
|
|
# Remove the directory if it's empty (will fail silently if it contains other files)
|
|
rmdir /opt/tailscale 2>/dev/null || true
|