File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -12,18 +12,21 @@ set -euxo pipefail
12
12
export TS_DEBUG_FIREWALL_MODE=auto
13
13
if [[ " $( id -u) " -eq 0 ]]; then
14
14
mkdir -p /workspaces/.tailscale || true
15
- /usr/local/sbin/tailscaled \
15
+ 2> /dev/null > /dev/null \
16
+ /usr/local/sbin/tailscaled \
16
17
--statedir=/workspaces/.tailscale/ \
17
18
--socket=/var/run/tailscale/tailscaled.sock \
18
- --port=41641 \
19
- & > /dev/null &
20
- elif command -v sudo & > /dev/null; then
21
- sudo --non-interactive sh -c ' mkdir -p /workspaces/.tailscale ; /usr/local/sbin/tailscaled \
19
+ --port=41641 &
20
+ elif command -v sudo > /dev/null; then
21
+ sudo --non-interactive mkdir -p /workspaces/.tailscale
22
+ 2> /dev/null > /dev/null \
23
+ sudo --non-interactive \
24
+ /usr/local/sbin/tailscaled \
22
25
--statedir=/workspaces/.tailscale/ \
23
26
--socket=/var/run/tailscale/tailscaled.sock \
24
- --port=41641 &> /dev/null ' &
27
+ --port=41641 &
25
28
else
26
- echo " tailscaled could not start as root." 1 & > 2
29
+ >&2 echo " tailscaled could not start as root."
27
30
fi
28
31
unset TS_DEBUG_FIREWALL_MODE
29
32
You can’t perform that action at this time.
0 commit comments