Change permissions on Dispvm template files only if we are root

Otherwise, it makes no sense, and thus we do not unnecessarily
warn.
This commit is contained in:
Rafal Wojtczuk 2011-03-24 16:57:43 +01:00
parent 4401c5a2cb
commit fcfc1c498d

View File

@ -57,6 +57,9 @@ else
ln -s $SHMCOPY $CURRENT
fi
chgrp qubes "$DVMTMPLDIR" "$DVMTMPLDIR"/*
chmod 660 "$DVMTMPLDIR"/*
chmod 770 "$DVMTMPLDIR"
if [ $(whoami) = "root" ] ; then
chgrp qubes "$DVMTMPLDIR" "$DVMTMPLDIR"/*
chmod 660 "$DVMTMPLDIR"/*
chmod 770 "$DVMTMPLDIR"
fi