mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-28 20:42:41 +02:00
tailscale fixes (#4794)
This commit is contained in:
@@ -156,7 +156,7 @@ if [ "$1" = "menu" ]; then
|
|||||||
do
|
do
|
||||||
|
|
||||||
# get tailscale login URL
|
# get tailscale login URL
|
||||||
login_url=$(sudo timeout 3s tailscale login --nickname RaspiBlitz 2>&1 | grep https:// | awk '{$1=$1; print}')
|
login_url=$(sudo timeout 3s sudo tailscale login --nickname RaspiBlitz 2>&1 | grep https:// | awk '{$1=$1; print}')
|
||||||
if [ -z "$login_url" ]; then
|
if [ -z "$login_url" ]; then
|
||||||
echo "# Error getting login URL"
|
echo "# Error getting login URL"
|
||||||
sleep 3
|
sleep 3
|
||||||
@@ -176,7 +176,7 @@ if [ "$1" = "menu" ]; then
|
|||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "# Cancelled Tailscle login"
|
echo "# Cancelled Tailscale login"
|
||||||
sleep 2
|
sleep 2
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
@@ -184,7 +184,7 @@ if [ "$1" = "menu" ]; then
|
|||||||
exit 0
|
exit 0
|
||||||
else
|
else
|
||||||
echo "# Tailscale state is '${backend_state}'"
|
echo "# Tailscale state is '${backend_state}'"
|
||||||
whiptail --msgbox "Tailscale state on RaspiBlitz is '${backend_state}'.\n\nFor details login with '${login_name}' to Tailscale service:\nhttps://login.tailscale.com\n\nOr use on terminal command:\nsudo tailscale status --json" 0 0
|
whiptail --msgbox "Tailscale state on RaspiBlitz is '${backend_state}'.\n\nFor details login with '${login_name}' to Tailscale service:\nhttps://login.tailscale.com\n\nOr use the command in the terminal:\nsudo tailscale status" 0 0
|
||||||
fi
|
fi
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
Reference in New Issue
Block a user