diff --git a/deploy/common.sh b/deploy/common.sh index aef83f1..7ccd8f0 100644 --- a/deploy/common.sh +++ b/deploy/common.sh @@ -46,7 +46,7 @@ setup_systemd_service() { restart_grade_service() { load_env_port mkdir -p "${INSTALL_DIR}/uploads" "${INSTALL_DIR}/backups" - chmod +x "${INSTALL_DIR}/deploy/start.sh" + find "${INSTALL_DIR}/deploy" -name "*.sh" -exec chmod +x {} + 2>/dev/null || true log_info "重启 grade-archive(端口 ${WEB_PORT})…" systemctl restart grade-archive }