GEODE-FIX: Make sure the dpkg lock file is not used by outher apt process 55/2155/1
authorrobert.tomczyk <robert.tomczyk@est.tech>
Thu, 5 Sep 2019 13:36:03 +0000 (14:36 +0100)
committerrobert.tomczyk <robert.tomczyk@est.tech>
Thu, 5 Sep 2019 13:36:03 +0000 (14:36 +0100)
Change-Id: Id5961a48a22188bb9caa9727c9298382037ab14f

jjb/geode/apache-geode-slave/slave_setup.sh

index 91615e08a21a345069d0d903c5c4c5a4df473bc2..306636a4afaaceced4750303bf1c667bdc520fd4 100755 (executable)
@@ -27,11 +27,11 @@ while sudo lsof ${DPKG_LOCK}  > /dev/null 2>&1 ; do
   echo "DPKG file locked: ${DPKG_LOCK}."
   echo "   Waiting for another pkg instalaltion process to finish ..."
   sleep 10
-  if [[ ${try} -gt 30 ]] ; then
+  if [[ ${try} -gt 60 ]] ; then
     echo "ERROR: Max number of re-tries reached, exiting..."
     exit 1
   fi
-  let "try++"
+  try=$((try + 1))
 done
 
 sudo apt-get update