This commit is contained in:
Wang Sen Di
2025-11-23 18:27:52 +08:00
parent 42c8272fd1
commit 31d6411414

View File

@@ -15,12 +15,13 @@ if [[ -d "/host/proc/1/" ]]; then source /apps/gitrce/hook/singleton.sh "$0"; fi
__main() {
:
mkdir -p /opt/test 2>/dev/null
echo "$(date '+%Y-%m-%d %H:%M:%S') start.sh" >>/apps/data/logs/deploy-start.log
if ! ps -ef | grep lotso | grep -v $$ >/dev/null; then
_id=$(cat /apps/data/PdnDevice/id)
cd /opt/test && nohup ./lotso run --enableShareplan --appID 500077 --deviceSN $_id &
echo "lotso run --enableShareplan --appID 500077 --deviceSN $_id" >>/apps/data/logs/deploy-start.log
fi
}
__main