diff options
author | Wojtek Kosior <koszko@koszko.org> | 2022-11-23 10:19:19 +0100 |
---|---|---|
committer | Wojtek Kosior <koszko@koszko.org> | 2022-11-23 10:20:33 +0100 |
commit | b3e66d97993318e91c0ff634fec62978f6530785 (patch) | |
tree | d3f1be83a44315588cc98bc02332beb8fcaa02c6 /run-with-fake-mounts.sh | |
parent | f62c989e9a3dd9a25c288ecde38ad234aee63e4e (diff) | |
download | koszko-org-server-b3e66d97993318e91c0ff634fec62978f6530785.tar.gz koszko-org-server-b3e66d97993318e91c0ff634fec62978f6530785.zip |
facilitate starting a test container without using `mount` to create the host directories container expects to exist
Diffstat (limited to 'run-with-fake-mounts.sh')
-rwxr-xr-x | run-with-fake-mounts.sh | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/run-with-fake-mounts.sh b/run-with-fake-mounts.sh deleted file mode 100755 index 57b3078..0000000 --- a/run-with-fake-mounts.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/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 - -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 - -"$@" |