]> git.pld-linux.org Git - packages/awffull.git/blobdiff - awffull.cron
- FORCE_USER option
[packages/awffull.git] / awffull.cron
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
This page took 0.246141 seconds and 4 git commands to generate.