Permalink
Browse files

Delete tmp qf if not running / failed execution

  • Loading branch information...
Cat5TV committed Aug 26, 2018
1 parent 9037080 commit 4f4418d0d44635b63f505b31de113f8e9c0bd1a6
Showing with 13 additions and 7 deletions.
  1. +13 −7 init.sh
20 init.sh
@@ -7,13 +7,19 @@ ver=$(/usr/local/share/nems/nems-scripts/info.sh nemsver)
platform=$(/usr/local/share/nems/nems-scripts/info.sh platform)
if [[ -f /tmp/qf.sh ]]; then
printf "Please wait... your NEMS server is being updated."
while [ -f /tmp/qf.sh ]
do
printf "."
sleep 2
done
echo " Ready."
qfrunning=`ps aux | grep -i "myscript.sh" | grep -v "grep" | wc -l`
if [ $qfrunning -ge 1 ]
then
printf "Please wait... your NEMS server is being updated."
while [ -f /tmp/qf.sh ]
do
printf "."
sleep 2
done
echo " Ready."
else
rm /tmp/qf.sh
fi
fi
if (( $(awk 'BEGIN {print ("'$ver'" >= "'1.4'")}') )); then

0 comments on commit 4f4418d

Please sign in to comment.