aboutsummaryrefslogtreecommitdiff
path: root/run-with-fake-mounts.sh
diff options
context:
space:
mode:
Diffstat (limited to 'run-with-fake-mounts.sh')
-rwxr-xr-xrun-with-fake-mounts.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/run-with-fake-mounts.sh b/run-with-fake-mounts.sh
index 75675ed..57b3078 100755
--- a/run-with-fake-mounts.sh
+++ b/run-with-fake-mounts.sh
@@ -8,10 +8,17 @@
set -e
+LOGDIR="$1"
+
+shift
+
mkdir -p /var/www
mount -t tmpfs dummy /var/www
mkdir -p /var/www/koszko.org/html
+rm -rf "$LOGDIR"
+mkdir -p "$LOGDIR"
+
printf ':D\n' > /var/www/koszko.org/html/index.html
"$@"