mirror of
https://github.com/kennethnym/aris.git
synced 2026-03-26 20:01:17 +00:00
Compare commits
1 Commits
feat/tails
...
kn/add-ser
| Author | SHA1 | Date | |
|---|---|---|---|
|
91aec95d04
|
@@ -10,7 +10,7 @@
|
|||||||
"context": ".",
|
"context": ".",
|
||||||
"dockerfile": "Dockerfile"
|
"dockerfile": "Dockerfile"
|
||||||
},
|
},
|
||||||
"postCreateCommand": "bun install && ./scripts/setup-tailscale.sh",
|
"postCreateCommand": "bun install",
|
||||||
"postStartCommand": "./scripts/setup-git.sh && ./scripts/setup-nvim.sh",
|
"postStartCommand": "./scripts/setup-git.sh && ./scripts/setup-nvim.sh",
|
||||||
// Features add additional features to your environment. See https://containers.dev/features
|
// Features add additional features to your environment. See https://containers.dev/features
|
||||||
// Beware: features are not supported on all platforms and may have unintended side-effects.
|
// Beware: features are not supported on all platforms and may have unintended side-effects.
|
||||||
|
|||||||
@@ -1,21 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# Tailscale setup script
|
|
||||||
# Authenticates with Tailscale if TS_AUTH_KEY is set and Tailscale is not already logged in
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
if [ -z "$TS_AUTH_KEY" ]; then
|
|
||||||
echo "TS_AUTH_KEY is not set, skipping Tailscale login."
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
STATUS=$(tailscale status 2>&1 || true)
|
|
||||||
|
|
||||||
if echo "$STATUS" | grep -qi "logged out\|stopped"; then
|
|
||||||
echo "Tailscale is not authenticated. Logging in..."
|
|
||||||
sudo tailscale up --accept-routes --auth-key="$TS_AUTH_KEY"
|
|
||||||
echo "Tailscale login complete."
|
|
||||||
else
|
|
||||||
echo "Tailscale is already authenticated, skipping."
|
|
||||||
fi
|
|
||||||
Reference in New Issue
Block a user