恢复代理构建和配置仓库克隆,简化一次性容器部署
This commit is contained in:
+6
-3
@@ -1,4 +1,7 @@
|
||||
#!/bin/bash
|
||||
cd $(dirname $(readlink -f "$0"))
|
||||
git fetch origin && git reset --hard origin/master && git pull
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
cd -- "$(dirname -- "$(readlink -f -- "$0")")"
|
||||
# 保留启动时更新;pull 遇到冲突报错,不强制丢弃本地改动。
|
||||
http_proxy= https_proxy= HTTP_PROXY= HTTPS_PROXY= git pull --ff-only
|
||||
mkdir -p ../state/{home,tmp,logs}
|
||||
docker compose up -d
|
||||
|
||||
Reference in New Issue
Block a user