SOURCES: awffull.cron - FORCE_USER option

dzeus dzeus at pld-linux.org
Sun Feb 1 10:29:32 CET 2009


Author: dzeus                        Date: Sun Feb  1 09:29:32 2009 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- FORCE_USER option

---- Files affected:
SOURCES:
   awffull.cron (1.8 -> 1.9) 

---- Diffs:

================================================================
Index: SOURCES/awffull.cron
diff -u SOURCES/awffull.cron:1.8 SOURCES/awffull.cron:1.9
--- SOURCES/awffull.cron:1.8	Tue Dec 12 14:10:11 2006
+++ SOURCES/awffull.cron	Sun Feb  1 10:29:27 2009
@@ -5,6 +5,13 @@
 [ -f /etc/sysconfig/awffull ] && . /etc/sysconfig/awffull
 umask 0022
 
+if [ -n "$FORCE_USER" ]; then
+	if [ "$FORCE_USER" != "`id -un`" ]; then
+		echo "Wrong current user. $FORCE_USER is required!"
+		exit 1
+	fi
+fi
+
 if [ -n "$ENABLE" ] && [ "$ENABLE" = "yes" -o "$ENABLE" = "YES" ]; then
 	LC_ALL=$LANG
 	export LANG
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/awffull.cron?r1=1.8&r2=1.9&f=u



More information about the pld-cvs-commit mailing list