minor fix

This commit is contained in:
Tommaso Piccioli 2019-02-21 13:40:22 +01:00
parent 13aafe98cd
commit f1d313dfd6
1 changed files with 2 additions and 2 deletions

View File

@ -1,11 +1,11 @@
#!/bin/bash
ISTOMCATRUNNING=="$(ps -fu gcube | grep -v grep | grep -c java)"
ISTOMCATRUNNING="$(ps -fu gcube | grep -v grep | grep -c java)"
if (( $ISTOMCATRUNNING == 0 ))
then
sleep 60
ISTOMCATRUNNING=="$(ps -fu gcube | grep -v grep | grep -c java)"
ISTOMCATRUNNING="$(ps -fu gcube | grep -v grep | grep -c java)"
fi
if (( $ISTOMCATRUNNING == 0 ))