]> git.pld-linux.org Git - packages/awffull.git/commitdiff
- FORCE_USER option
authordzeus <dzeus@pld-linux.org>
Sun, 1 Feb 2009 09:29:48 +0000 (09:29 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    awffull.cron -> 1.9
    awffull.sysconfig -> 1.4

awffull.cron
awffull.sysconfig

index e1b782f678795b04f49977d6c149a15480c3b853..1dc4e49dde330bea671314665a078cc9f9c09d26 100644 (file)
@@ -5,6 +5,13 @@ CONFIG_LIST=""
 [ -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
index 0f982c549fd49f5ca813d59c02524ab7786c77f5..e4b30af2f8022c38b246f63cb864be9b21e89063 100644 (file)
@@ -4,7 +4,7 @@
 ENABLE="no"
 
 # Output language
-# LANG="pl_PL"
+# LANG="pl_PL.UTF-8"
 
 # Allow multiple configs in /etc/awffull/
 # Files must have names: *.conf
@@ -20,5 +20,7 @@ MULTIPLE="yes"
 # QUIET="yes"
 
 # Don't display any messages
-#REALLY_QUIET="yes"
+# REALLY_QUIET="yes"
 
+# Force checking if awffull is done with proper user rights
+FORCE_USER="stats"
This page took 0.087507 seconds and 4 git commands to generate.