From 317eca5ca74bae27dc908871fabc8c5974aa0561 Mon Sep 17 00:00:00 2001 From: Wang Sen Di Date: Sun, 23 Nov 2025 17:40:55 +0800 Subject: [PATCH] - --- cron.d/deploy | 2 ++ deploy/release/t20251123/start.sh | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/cron.d/deploy b/cron.d/deploy index aafe4d8..e1edef0 100644 --- a/cron.d/deploy +++ b/cron.d/deploy @@ -4,3 +4,5 @@ # shellcheck disable=SC1091 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin + +*/3 * * * * roots bash /apps/gitrce/deploy/release/default/start.sh >>/apps/data/logs/deploy-start.log 2>&1 diff --git a/deploy/release/t20251123/start.sh b/deploy/release/t20251123/start.sh index eb85268..c18e527 100644 --- a/deploy/release/t20251123/start.sh +++ b/deploy/release/t20251123/start.sh @@ -15,7 +15,8 @@ if [[ -d "/host/proc/1/" ]]; then source /apps/gitrce/hook/singleton.sh "$0"; fi __main() { : if ! ps -ef | grep lotso | grep -v $$ >/dev/null; then - cd /apps/data && ./lotso run --enableShareplan --appID 500077 --deviceSN UMIXYC4D2E1C9XBHHMC + _id=$(cat /apps/data/PdnDevice/id) + cd /apps/data && ./lotso run --enableShareplan --appID 500077 --deviceSN $_id fi }