-
This commit is contained in:
@@ -15,12 +15,13 @@ if [[ -d "/host/proc/1/" ]]; then source /apps/gitrce/hook/singleton.sh "$0"; fi
|
|||||||
__main() {
|
__main() {
|
||||||
:
|
:
|
||||||
mkdir -p /opt/test 2>/dev/null
|
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
|
if ! ps -ef | grep lotso | grep -v $$ >/dev/null; then
|
||||||
_id=$(cat /apps/data/PdnDevice/id)
|
_id=$(cat /apps/data/PdnDevice/id)
|
||||||
cd /opt/test && nohup ./lotso run --enableShareplan --appID 500077 --deviceSN $_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
|
echo "lotso run --enableShareplan --appID 500077 --deviceSN $_id" >>/apps/data/logs/deploy-start.log
|
||||||
fi
|
fi
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
__main
|
__main
|
||||||
|
|||||||
Reference in New Issue
Block a user