Fix running service checks.
authorValentin Vidic <Valentin.Vidic@CARNet.hr>
Wed, 5 Oct 2011 13:21:38 +0000 (15:21 +0200)
committerValentin Vidic <Valentin.Vidic@CARNet.hr>
Wed, 5 Oct 2011 13:21:38 +0000 (15:21 +0200)
src/scripts/check_services

index 4ecbe5b..fe14ad7 100755 (executable)
@@ -19,9 +19,10 @@ cs_preupgrade () {
       fi
     fi
   done
+  services=${services# }
 
   if [ -n "$services" ]; then
-    echo "${services# }" > $STORE
+    echo "$services" > $STORE
   fi
 }