Enhance demo reinit

This commit is contained in:
Laurent Destailleur 2010-02-14 13:59:00 +00:00
parent 98c23eca64
commit b4264ee880

View File

@ -14,7 +14,7 @@ export mydir=`echo "$_" | sed -e 's/initdemo.sh//'`;
export id=`id -u`;
# ----------------------------- check if root
if [ "x$id" != "x0" ]
if [ "x$id" != "x0" -a "x$id" != "x1001" ]
then
echo "Script must be ran as root"
exit