🚀 Sync 2026-03-18 20:29:42

This commit is contained in:
github-actions[bot] committed 2026-03-18 20:29:42 +08:00
1 parent c62c96aa04
commit 79996b4e00
212 files changed
+6047 -30308

No files matched your search

@@ -19,10 +19,11 @@ start_service() {
config_get_bool enabled main enabled 0
config_get port main port 18789
config_get bind main bind lan
config_get base_dir main base_dir /opt/openclawmgr
config_get base_dir main base_dir ""
config_get token main token ""
[ "$enabled" -eq 1 ] || return 0
[ -n "$base_dir" ] || return 1
local node_bin="${base_dir}/node/bin/node"
local global_dir="${base_dir}/global"
@@ -38,7 +39,7 @@ start_service() {
[ -n "$entry" ] || return 1
[ -n "$token" ] || return 1
mkdir -p "${data_dir}/.openclaw" 2>/dev/null
mkdir -p "${data_dir}/.openclaw/workspace" 2>/dev/null
if [ -f "$env_file" ]; then
# shellcheck disable=SC1090
. "$env_file"
@@ -59,6 +60,10 @@ start_service() {
if id openclawmgr >/dev/null 2>&1; then
user_opt="openclawmgr"
fi
if [ -n "$user_opt" ]; then
chown -R "$user_opt:$user_opt" "$data_dir" 2>/dev/null || true
chmod -R u+rwX "$data_dir" 2>/dev/null || true
fi
procd_open_instance "gateway"
procd_set_param command "$node_bin" "$entry" gateway run --port "$port" --bind "$bind" --auth token --token "$token" --allow-unconfigured $force_opt