diff options
author | Wojtek Kosior <koszko@koszko.org> | 2022-12-10 14:54:12 +0100 |
---|---|---|
committer | Wojtek Kosior <koszko@koszko.org> | 2022-12-10 17:03:41 +0100 |
commit | e28d864254b5eb1be2d9afe62a04ca616efed12e (patch) | |
tree | 4288731f6e830c2bdb68da7e81fb2fd8f029375f /Makefile | |
parent | cb5ea9275ad2f25b78c6fc99ab75f3626ee752b9 (diff) | |
download | koszko-org-server-e28d864254b5eb1be2d9afe62a04ca616efed12e.tar.gz koszko-org-server-e28d864254b5eb1be2d9afe62a04ca616efed12e.zip |
make hydrillarepos.koszko.org virtualhost testable
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 17 |
1 files changed, 9 insertions, 8 deletions
@@ -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` |