X-Git-Url: https://git.pld-linux.org/gitweb.cgi?a=blobdiff_plain;f=awffull.cron;h=1dc4e49dde330bea671314665a078cc9f9c09d26;hb=0669167b1a82a80e8585bcd9929d9d6c7f8bace0;hp=e1b782f678795b04f49977d6c149a15480c3b853;hpb=5440e40aa842b4933b30d1588c5500ea101fa379;p=packages%2Fawffull.git diff --git a/awffull.cron b/awffull.cron index e1b782f..1dc4e49 100644 --- a/awffull.cron +++ b/awffull.cron @@ -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