aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2022-12-10 14:54:12 +0100
committerWojtek Kosior <koszko@koszko.org>2022-12-10 17:03:41 +0100
commite28d864254b5eb1be2d9afe62a04ca616efed12e (patch)
tree4288731f6e830c2bdb68da7e81fb2fd8f029375f /Makefile
parentcb5ea9275ad2f25b78c6fc99ab75f3626ee752b9 (diff)
downloadkoszko-org-server-e28d864254b5eb1be2d9afe62a04ca616efed12e.tar.gz
koszko-org-server-e28d864254b5eb1be2d9afe62a04ca616efed12e.zip
make hydrillarepos.koszko.org virtualhost testable
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 9 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 6ae7ab6..25558e3 100644
--- a/Makefile
+++ b/Makefile
@@ -67,21 +67,22 @@ sample-malcontent:
"$$(realpath $@)" | \
make -C subrepos/hydrilla shell-with-haketilo
-HYDRILLA_HTTP_ROOT_DIR = $(TEST_ROOT_DIR)/var/www/hydrilla.koszko.org/html
HYDRILLA_WEBSITE_ETC_DIR = $(TEST_ROOT_DIR)/etc/guix-container/hydrilla-website
MALCONTENT_DIR = $(TEST_ROOT_DIR)/var/lib/hydrilla/malcontent_dirs
prepare-test-root: sample-malcontent
rm -rf $(TEST_ROOT_DIR)
@# Prepare replacement `/var/www`
- for SITE in koszko.org hydrillarepos.koszko.org; do \
- mkdir -p $(TEST_ROOT_DIR)/var/www/"$$SITE"/html; \
- printf 'This is dummy file for %s :D\n' "$$SITE" \
- > $(TEST_ROOT_DIR)/var/www/"$$SITE"/html/index.html; \
+ for WWW_SUBDIR in \
+ koszko.org/html \
+ hydrillarepos.koszko.org/html \
+ hydrilla.koszko.org/html/downloads \
+ hydrillarepos.koszko.org/html \
+ ; do \
+ mkdir -p $(TEST_ROOT_DIR)/var/www/"$$WWW_SUBDIR"; \
+ printf 'This is dummy file for %s :D\n' "$$WWW_SUBDIR" \
+ > $(TEST_ROOT_DIR)/var/www/"$$WWW_SUBDIR"/index.html; \
done
- mkdir -p $(HYDRILLA_HTTP_ROOT_DIR)/downloads
- printf 'This is dummy file for hydrilla.koszko.org/downloads\n' \
- > $(HYDRILLA_HTTP_ROOT_DIR)/downloads/index.html
@# Prepare replacement `/var/log`
mkdir -p $(TEST_ROOT_DIR)/var/log
@# Prepare replacement `/etc`