mirror of
https://github.com/tailscale-dev/deck-tailscale.git
synced 2025-10-22 07:28:14 +00:00

- Add PATH entries to .bashrc and .bash_profile for Konsole compatibility - Create .bash_profile if missing on Steam Deck with proper ownership - Keep existing /etc/profile.d/ approach for SSH sessions - Prevent duplicate PATH entries with existence checks - Update uninstall script to clean up user shell profile entries - Use sed to remove Tailscale PATH entries during uninstall Fixes #38
20 lines
1015 B
Bash
20 lines
1015 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
|
|
# Remove symlinks from both possible locations (Steam Deck and other systems)
|
|
rm -f /usr/local/bin/tailscale /usr/local/bin/tailscaled
|
|
rm -f /home/deck/.local/bin/tailscale /home/deck/.local/bin/tailscaled
|
|
# Remove PATH entries from user shell profiles
|
|
sed -i '/\/home\/deck\/.local\/bin.*tailscale/d' /home/deck/.bashrc 2>/dev/null || true
|
|
sed -i '/\/home\/deck\/.local\/bin.*tailscale/d' /home/deck/.bash_profile 2>/dev/null || true
|
|
sed -i '/\/opt\/tailscale/d' /home/deck/.bashrc 2>/dev/null || true
|
|
sed -i '/\/opt\/tailscale/d' /home/deck/.bash_profile 2>/dev/null || true
|
|
# 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
|