fixed mtree rc mode

This commit is contained in:
Thomas von Dein
2022-02-01 13:23:16 +01:00
parent 095819819e
commit 3437d7dce4

5
jaildk
View File

@@ -450,7 +450,10 @@ rc_mtree() {
else
run=$j/run/$jail/
fi
ex mtree -p $run -Ue -f $j/etc/$jail/mtree.conf | grep -v "extra:"
# needs to run inside jail
echo "cat $j/etc/$jail/mtree.conf | chroot $run mtree -p / -Ue | grep -v extra:"
cat $j/etc/$jail/mtree.conf | chroot $run mtree -p / -Ue | grep -v "extra:"
;;
esac
fi