@ssdavidai/zoclaw 1.0.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/scripts/bootstrap.sh +4 -2
- package/scripts/setup.sh +5 -5
package/package.json
CHANGED
package/scripts/bootstrap.sh
CHANGED
|
@@ -39,8 +39,10 @@ node -e "
|
|
|
39
39
|
// This lets the gateway recognize .ts.net Host headers as local.
|
|
40
40
|
gw.trustedProxies = ['127.0.0.1/32'];
|
|
41
41
|
|
|
42
|
-
// Fix credentials dir permissions
|
|
43
|
-
|
|
42
|
+
// Fix credentials dir permissions (create if missing)
|
|
43
|
+
const credDir = process.env.HOME + '/.openclaw/credentials';
|
|
44
|
+
if (!fs.existsSync(credDir)) fs.mkdirSync(credDir, { recursive: true, mode: 0o700 });
|
|
45
|
+
else fs.chmodSync(credDir, 0o700);
|
|
44
46
|
|
|
45
47
|
fs.writeFileSync(process.argv[1], JSON.stringify(cfg, null, 2) + '\n');
|
|
46
48
|
" "$CONFIG"
|
package/scripts/setup.sh
CHANGED
|
@@ -25,10 +25,10 @@ step 1 "Tailscale auth key"
|
|
|
25
25
|
ensure_secrets_file
|
|
26
26
|
source "$SECRETS_FILE" 2>/dev/null || true
|
|
27
27
|
|
|
28
|
-
if [ -n "${
|
|
29
|
-
echo " Found
|
|
28
|
+
if [ -n "${TAILSCALE_AUTHKEY:-}" ]; then
|
|
29
|
+
echo " Found TAILSCALE_AUTHKEY in zo secrets, using existing key."
|
|
30
30
|
else
|
|
31
|
-
echo " No
|
|
31
|
+
echo " No TAILSCALE_AUTHKEY found in zo secrets."
|
|
32
32
|
echo " Generate one at: https://login.tailscale.com/admin/settings/keys"
|
|
33
33
|
echo ""
|
|
34
34
|
read -rp " Enter your Tailscale auth key: " ts_key
|
|
@@ -36,8 +36,8 @@ else
|
|
|
36
36
|
echo " Error: auth key cannot be empty."
|
|
37
37
|
exit 1
|
|
38
38
|
fi
|
|
39
|
-
echo "export
|
|
40
|
-
export
|
|
39
|
+
echo "export TAILSCALE_AUTHKEY=\"${ts_key}\"" >> "$SECRETS_FILE"
|
|
40
|
+
export TAILSCALE_AUTHKEY="$ts_key"
|
|
41
41
|
echo " Saved to zo secrets."
|
|
42
42
|
fi
|
|
43
43
|
|