@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ssdavidai/zoclaw",
3
- "version": "1.0.0",
3
+ "version": "1.1.1",
4
4
  "description": "Set up OpenClaw on Zo with Tailscale access in one command",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -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
- fs.chmodSync(process.env.HOME + '/.openclaw/credentials', 0o700);
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 "${TAILSCALE_AUTH_KEY:-}" ]; then
29
- echo " Found TAILSCALE_AUTH_KEY in zo secrets, using existing key."
28
+ if [ -n "${TAILSCALE_AUTHKEY:-}" ]; then
29
+ echo " Found TAILSCALE_AUTHKEY in zo secrets, using existing key."
30
30
  else
31
- echo " No TAILSCALE_AUTH_KEY found in zo secrets."
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 TAILSCALE_AUTH_KEY=\"${ts_key}\"" >> "$SECRETS_FILE"
40
- export TAILSCALE_AUTH_KEY="$ts_key"
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