Spaces:
Paused
Paused
Sunset Mikoto commited on
Commit ·
b6e7f1f
1
Parent(s): bfb429c
Fix sudo
Browse files
deploy-container/entrypoint.sh
CHANGED
|
@@ -98,9 +98,9 @@ fi
|
|
| 98 |
# Setup Tailscale
|
| 99 |
# https://tailscale.com/kb/1107/heroku
|
| 100 |
if [ -n "$TS_AUTHKEY" ]; then
|
| 101 |
-
tailscaled --tun=userspace-networking --socks5-server=localhost:1055 &
|
| 102 |
-
tailscale up --authkey="${TS_AUTHKEY}?preauthorized=true&ephemeral=true" --hostname=${TS_HOSTNAME} --advertise-exit-node=true --ssh=true --accept-dns --advertise-tags=tag:container
|
| 103 |
-
tailscale set --webclient=true --auto-update=true --posture-checking=true
|
| 104 |
echo "[$PREFIX] Tailscale started"
|
| 105 |
export ALL_PROXY=socks5://localhost:1055/
|
| 106 |
unset TS_AUTHKEY TS_HOSTNAME
|
|
|
|
| 98 |
# Setup Tailscale
|
| 99 |
# https://tailscale.com/kb/1107/heroku
|
| 100 |
if [ -n "$TS_AUTHKEY" ]; then
|
| 101 |
+
sudo tailscaled --tun=userspace-networking --socks5-server=localhost:1055 &
|
| 102 |
+
sudo tailscale up --authkey="${TS_AUTHKEY}?preauthorized=true&ephemeral=true" --hostname=${TS_HOSTNAME} --advertise-exit-node=true --ssh=true --accept-dns --advertise-tags=tag:container
|
| 103 |
+
sudo tailscale set --webclient=true --auto-update=true --posture-checking=true
|
| 104 |
echo "[$PREFIX] Tailscale started"
|
| 105 |
export ALL_PROXY=socks5://localhost:1055/
|
| 106 |
unset TS_AUTHKEY TS_HOSTNAME
|