diff options
Diffstat (limited to 'run-with-fake-mounts.sh')
-rwxr-xr-x | run-with-fake-mounts.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/run-with-fake-mounts.sh b/run-with-fake-mounts.sh new file mode 100755 index 0000000..75675ed --- /dev/null +++ b/run-with-fake-mounts.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +# SPDX-License-Identifier: CC0-1.0 + +# Copyright (C) 2022 Wojtek Kosior <koszko@koszko.org> +# +# Available under the terms of Creative Commons Zero v1.0 Universal. + +set -e + +mkdir -p /var/www +mount -t tmpfs dummy /var/www +mkdir -p /var/www/koszko.org/html + +printf ':D\n' > /var/www/koszko.org/html/index.html + +"$@" |