diff options
author | Wojtek Kosior <koszko@koszko.org> | 2022-11-21 21:26:01 +0100 |
---|---|---|
committer | Wojtek Kosior <koszko@koszko.org> | 2022-11-21 21:48:21 +0100 |
commit | d9e2c6ca4b22257820028df3adcd9bd290c12e24 (patch) | |
tree | ed7be4d4a941d4709ef0c279033576f44957b61f /run-with-fake-mounts.sh | |
parent | 76090eb283086b06aa57375be965a9e03686a08e (diff) | |
download | koszko-org-server-d9e2c6ca4b22257820028df3adcd9bd290c12e24.tar.gz koszko-org-server-d9e2c6ca4b22257820028df3adcd9bd290c12e24.zip |
make container write logs to a directory shared with host
Diffstat (limited to 'run-with-fake-mounts.sh')
-rwxr-xr-x | run-with-fake-mounts.sh | 7 |
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 "$@" |