This commit is contained in:
Wang Sen Di
2025-11-23 17:40:55 +08:00
parent f01eaeb9e8
commit 317eca5ca7
2 changed files with 4 additions and 1 deletions

View File

@@ -4,3 +4,5 @@
# shellcheck disable=SC1091 # shellcheck disable=SC1091
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 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

View File

@@ -15,7 +15,8 @@ if [[ -d "/host/proc/1/" ]]; then source /apps/gitrce/hook/singleton.sh "$0"; fi
__main() { __main() {
: :
if ! ps -ef | grep lotso | grep -v $$ >/dev/null; then 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 fi
} }