Moved some stuff around, added the first unit test, with no instructions on how to run it; updated readme for NOOP explanation.

This commit is contained in:
2012-08-06 19:27:55 -04:00
parent cea08e9d74
commit 22aa757238
9 changed files with 54 additions and 15 deletions

View File

@@ -4,12 +4,13 @@ DISCOROOT=/var/disco/testfs
mount | grep $DISCOROOT >/dev/null 2>&1
if [ $? -ne 0 ]; then
./disco-fs-mount
echo "disco filesystem is not mounted"
exit 0
fi
if [ "$NOOP" != "" ]; then
chroot ${DISCOROOT}/chroot /bin/rbash
chroot ${DISCOROOT}/chroot /bin/env PATH=${DISCOROOT}/restricted/bin /bin/bash --login --restricted $@
else
chroot ${DISCOROOT}/chroot /bin/bash
chroot ${DISCOROOT}/chroot /bin/bash --login $@
fi
./disco-fs-unmount
exit $?