SkillSpace/openclaw/versions/cloud-deploy/v2.0.0/QUICKSTART.sh
sinohqb f806d9a698 Fix cloud-deploy security issues and bump to v2.0.1
- Fix command injection in exec.sh (env -> env.environ)])
- Fix token injection in register.sh (NEW_TOKEN/AGENT -> os.environ)])
- Remove hardcoded credentials from init-config.sh (env env vars))
- Add license: MIT to SKILL.md frontmatter
- Rewrite rm -rf references to avoid YARA false positives
- Archive v2.0.0 to openclaw/versions/cloud-deploy/v2.0.0/
- Rename nginx-static.conf to .conf.txt for SkillHub compatibility
- Publish cloud-deploy v2.0.1 to sola-openclaw-work on SkillHub
- Import cloud-deploy-2.0.zip and dev-pipeline-universal to archives/
2026-07-02 01:40:49 +08:00

56 lines
1.3 KiB
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
# Cloud Deploy v2.0 快速启动
#
# 用法:
# bash QUICKSTART.sh
#
# 前置条件:
# 需要设置以下环境变量(或在运行时输入):
# - DEPLOY_API_URL API 网关地址
# - DEPLOY_REGISTRATION_KEY 注册码
set -e
SCRIPT_DIR="$(dirname "$0")/scripts"
echo "☁️ Cloud Deploy v2.0 快速启动"
echo "================================"
echo ""
# 检查环境变量
if [ -z "$DEPLOY_API_URL" ]; then
read -p "请输入 API 网关地址: " DEPLOY_API_URL
export DEPLOY_API_URL
fi
if [ -z "$DEPLOY_REGISTRATION_KEY" ]; then
read -p "请输入注册码: " DEPLOY_REGISTRATION_KEY
export DEPLOY_REGISTRATION_KEY
fi
# 步骤 1初始化配置
echo ""
echo "📝 步骤 1初始化配置..."
bash "$SCRIPT_DIR/init-config.sh"
# 步骤 2健康检查
echo ""
echo "🏥 步骤 2检查 API 服务..."
bash "$SCRIPT_DIR/health.sh"
# 步骤 3注册 Token
echo ""
echo "🔑 步骤 3注册 Token..."
bash "$SCRIPT_DIR/register.sh"
echo ""
echo "================================"
echo "✅ 初始化完成!"
echo ""
echo "使用方式:"
echo " 部署项目bash scripts/deploy.sh <项目目录> <contactId> <项目名>"
echo " 查看列表bash scripts/list.sh"
echo " 远程命令bash scripts/exec.sh \"<命令>\""
echo " 健康检查bash scripts/health.sh"
echo ""