mirror of
https://github.com/tasket/Qubes-VM-hardening.git
synced 2025-05-14 11:52:13 -04:00
Update vm-sudo-protect.sh
Test for vms.all before copy
This commit is contained in:
parent
11d441e418
commit
066ec6e67d
1 changed files with 3 additions and 1 deletions
|
@ -30,7 +30,9 @@ if [ -e /var/run/qubes-service/vm-sudo-protect-root ] && [ `qubesdb-read /qubes-
|
||||||
cd $rw/home/user
|
cd $rw/home/user
|
||||||
chattr -R -f -i $chfiles $chdirs || true
|
chattr -R -f -i $chfiles $chdirs || true
|
||||||
# copy..
|
# 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
|
if [ -d $defdir/$(hostname) ]; then
|
||||||
cp -af $defdir/$(hostname)/* / || true
|
cp -af $defdir/$(hostname)/* / || true
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue