Enhance demo reinit
This commit is contained in:
parent
98c23eca64
commit
b4264ee880
@ -14,7 +14,7 @@ export mydir=`echo "$_" | sed -e 's/initdemo.sh//'`;
|
|||||||
export id=`id -u`;
|
export id=`id -u`;
|
||||||
|
|
||||||
# ----------------------------- check if root
|
# ----------------------------- check if root
|
||||||
if [ "x$id" != "x0" ]
|
if [ "x$id" != "x0" -a "x$id" != "x1001" ]
|
||||||
then
|
then
|
||||||
echo "Script must be ran as root"
|
echo "Script must be ran as root"
|
||||||
exit
|
exit
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user