Update motds32

This commit is contained in:
Erreur32 2017-07-31 18:49:01 +02:00
parent ba1fabf07b
commit 1fdcb292c4
1 changed files with 7 additions and 4 deletions

View File

@ -10,10 +10,13 @@
# Copyright 2013 Pavol Krigler <pavol.krigler@gelogic.net>
#
if [[ $EUID -ne 0 ]]; then
echo "Need root" 1>&2
/etc/motds32/Stats32 > /etc/motds32/Stats32.txt
fi
if [[ $EUID -ne 0 ]]; then
echo " Need to be ROOT to executing this file"
#1>&2
else
/bin/bash /etc/motds32/Stats32 > /etc/motds32/Stats32.txt
echo " Generating Stats file: ok"
fi
# Path to the configuration file
CONFIGFILE="/etc/motds32/motds32.conf"