From 6778aaead6f1c864dcfeaa93aa43317fe9dc7807 Mon Sep 17 00:00:00 2001 From: Zac Holland Date: Fri, 15 Dec 2023 16:10:51 -0800 Subject: [PATCH] add user binaries to path --- tailscale.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tailscale.sh b/tailscale.sh index 87bf2d7..b8568f9 100644 --- a/tailscale.sh +++ b/tailscale.sh @@ -45,6 +45,11 @@ mkdir -p /home/deck/.bin cp -rf $tar_dir/tailscale /home/deck/.bin/tailscale cp -rf $tar_dir/tailscaled /home/deck/.bin/tailscaled +# add binaries to path via bashrc if not already there +if [ $(cat /home/deck/.bashrc | grep -c "/home/deck/.bin") -eq 0 ]; then + echo "/home/deck/.bin" >> /home/deck/.bashrc +fi + # copy in the defaults file if it doesn't already exist if ! test -f /home/deck/.config/tailscaled.defaults; then cp -rf $tar_dir/systemd/tailscaled.defaults /home/deck/.config/tailscaled.defaults