packages: ocs-inventory-ng-client/ocs-inventory-ng-client.cron - add OCSNOS...

wolvverine wolvverine at pld-linux.org
Wed Oct 14 20:19:56 CEST 2009


Author: wolvverine                   Date: Wed Oct 14 18:19:56 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- add OCSNOSOFTWARE and OCSFORCE

---- Files affected:
packages/ocs-inventory-ng-client:
   ocs-inventory-ng-client.cron (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: packages/ocs-inventory-ng-client/ocs-inventory-ng-client.cron
diff -u packages/ocs-inventory-ng-client/ocs-inventory-ng-client.cron:1.2 packages/ocs-inventory-ng-client/ocs-inventory-ng-client.cron:1.3
--- packages/ocs-inventory-ng-client/ocs-inventory-ng-client.cron:1.2	Fri Oct  9 17:19:31 2009
+++ packages/ocs-inventory-ng-client/ocs-inventory-ng-client.cron	Wed Oct 14 20:19:51 2009
@@ -16,11 +16,19 @@
 			OPTS="--wait ${OCSPAUSE[$i]}"
 		fi
 
+		if [ "${OCSNOSOFTWARE[$i]}" = '1' ] || [ "${OCSNOSOFTWARE[$i]}" = 'yes' ]; then
+			OPTS="$OPTS --nosoftware"
+		fi
+
+		if [ "${OCSFORCE[$i]}" = '1' ] || [ "${OCSFORCE[$i]}" = 'yes' ]; then
+			OPTS="$OPTS --force"
+		fi
+
 		if [ ! -z "${OCSTAG[$i]}" ]; then
 		        OPTS="$OPTS --tag=${OCSTAG[$i]}"
 		fi
 
-		if [ "z${OCSSERVER[$i]}" = 'zlocal' ]; then
+		if [ "${OCSSERVER[$i]}" = 'zlocal' ]; then
 	        	# Local inventory
 	        	OPTS="$OPTS --local=/var/lib/$NAME"
 		elif [ ! -z "${OCSSERVER[$i]}" ]; then
@@ -28,9 +36,9 @@
 		        OPTS="$OPTS --lazy --server=${OCSSERVER[$i]}"	
 		fi
 		echo "[$(date '+%c')] Running $NAME $OPTS"
-		/usr/bin/$NAME  $OPTS
+		echo "/usr/bin/$NAME  $OPTS"
 	fi
 	((i++))
 done
-echo "[$(date '+%c')] End of cron job ($PATH)"
+echo "[$(date '+%c')] End of cron job ($0)"
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/ocs-inventory-ng-client/ocs-inventory-ng-client.cron?r1=1.2&r2=1.3&f=u



More information about the pld-cvs-commit mailing list