mirror of
https://github.com/tasket/Qubes-VM-hardening.git
synced 2025-01-27 08:17:10 -05:00
Update vm-sudo-protect.sh
Test for vms.all before copy
This commit is contained in:
parent
11d441e418
commit
066ec6e67d
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user