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:
parent
4401c5a2cb
commit
fcfc1c498d
@ -57,6 +57,9 @@ else
|
|||||||
ln -s $SHMCOPY $CURRENT
|
ln -s $SHMCOPY $CURRENT
|
||||||
fi
|
fi
|
||||||
|
|
||||||
chgrp qubes "$DVMTMPLDIR" "$DVMTMPLDIR"/*
|
if [ $(whoami) = "root" ] ; then
|
||||||
chmod 660 "$DVMTMPLDIR"/*
|
chgrp qubes "$DVMTMPLDIR" "$DVMTMPLDIR"/*
|
||||||
chmod 770 "$DVMTMPLDIR"
|
chmod 660 "$DVMTMPLDIR"/*
|
||||||
|
chmod 770 "$DVMTMPLDIR"
|
||||||
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user