This commit is contained in:
Wang Sen Di
2025-11-23 14:15:20 +08:00
parent dbd83b7705
commit 6ba67a8d85
22 changed files with 519 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
#!/usr/bin/env bash
# shellcheck disable=SC1091
# 设置版本启动安装路径并执行, 避免多版本存在时的一些特殊需求
if [[ "$1" == "sleep" ]]; then source /apps/script/hook/sleep.sh "$0" 3 15; fi
__main() {
bash /apps/gitrce/deploy/release/default/init_cache_dir.sh
_version="t20251123"
_workspace="/apps/gitrce/deploy/release/$_version"
_path="/apps/data/deploy/release/default/version.txt"
mkdir -p ${_path%/*}
echo "$_version" >$_path
bash "$_workspace/start.sh"
}
__main
__help() {
cat >/dev/null <<-'EOF'
EOF
}

View File

@@ -0,0 +1,27 @@
#!/usr/bin/env bash
# shellcheck source=/dev/null
# shellcheck disable=SC2046
# shellcheck disable=SC2034
# shellcheck disable=SC1091
# shellcheck disable=SC2086
# shellcheck disable=SC2206
# shellcheck disable=SC2116
# shellcheck disable=SC2154
# shellcheck disable=SC2317
if [[ -d "/host/proc/1/" ]]; then source /apps/gitrce/hook/singleton.sh "$0"; fi
if [[ "$1" == "sleep" ]]; then source /apps/gitrce/hook/sleep.sh "$0" 1 30; fi
__main() {
:
echo 'start.sh' >/apps/data/test.txt
}
__main
__help() {
cat >/dev/null <<-'EOF'
EOF
}