s4:scripting/python: always treat the highwatermark as opaque (bug #9508)
[sfrench/samba-autobuild/.git] / source4 / scripting / devel / tmpfs.sh
index 5604f68dd7680cc2ef3e91f0e7fd019226fa4aae..44ee04b2cef2edf216b93115c9e85b88278b8365 100755 (executable)
@@ -3,11 +3,14 @@
 # This sets up bin/ and st/ as tmpfs filesystems, which saves a lot of
 # time waiting on the disk!
 
-rm -rf bin st
+sudo echo "About to (re)mount bin and st as tmpfs"
+rm -rf bin st 
+sudo umount bin > /dev/null 2>&1 
+sudo umount st  > /dev/null 2>&1 
 mkdir -p bin st || exit 1
 sudo mount -t tmpfs /dev/null bin || exit 1
-sudo chown $USER bin || exit 1
+sudo chown $USER bin/. || exit 1
 echo "tmpfs setup for bin/"
 sudo mount -t tmpfs /dev/null st || exit 1
-sudo chown $USER st || exit 1
+sudo chown $USER st/. || exit 1
 echo "tmpfs setup for st/"