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
|
||||
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user