Update vm-sudo-protect.sh

Test for vms.all before copy
This commit is contained in:
tasket 2017-04-20 19:42:06 -04:00 committed by GitHub
parent 11d441e418
commit 066ec6e67d

View File

@ -30,7 +30,9 @@ if [ -e /var/run/qubes-service/vm-sudo-protect-root ] && [ `qubesdb-read /qubes-
cd $rw/home/user
chattr -R -f -i $chfiles $chdirs || true
# copy..
cp -af $defdir/vms.all/* / || true
if [ -d $defdir/vms.all ]; then
cp -af $defdir/vms.all/* / || true
fi
if [ -d $defdir/$(hostname) ]; then
cp -af $defdir/$(hostname)/* / || true
fi