mirror of
https://github.com/tailscale-dev/deck-tailscale.git
synced 2025-10-23 07:58:09 +00:00
Fix PATH issue on Steam Deck by adding symbolic links
- 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
This commit is contained in:
17
tailscale.sh
17
tailscale.sh
@@ -59,7 +59,22 @@ mkdir -p /opt/tailscale
|
||||
cp -rf $tar_dir/tailscale /opt/tailscale/tailscale
|
||||
cp -rf $tar_dir/tailscaled /opt/tailscale/tailscaled
|
||||
|
||||
# add binaries to path via profile.d
|
||||
# Make binaries executable
|
||||
chmod +x /opt/tailscale/tailscale
|
||||
chmod +x /opt/tailscale/tailscaled
|
||||
|
||||
# Create symbolic links in /usr/local/bin (which is typically in PATH)
|
||||
# Ensure the directory exists first
|
||||
mkdir -p /usr/local/bin
|
||||
|
||||
# Remove existing symlinks first if they exist
|
||||
rm -f /usr/local/bin/tailscale /usr/local/bin/tailscaled
|
||||
|
||||
# Create new symbolic links
|
||||
ln -s /opt/tailscale/tailscale /usr/local/bin/tailscale
|
||||
ln -s /opt/tailscale/tailscaled /usr/local/bin/tailscaled
|
||||
|
||||
# Also add to profile.d as fallback for environments where /usr/local/bin isn't in PATH
|
||||
if ! test -f /etc/profile.d/tailscale.sh; then
|
||||
echo 'PATH="$PATH:/opt/tailscale"' >> /etc/profile.d/tailscale.sh
|
||||
source /etc/profile.d/tailscale.sh
|
||||
|
Reference in New Issue
Block a user