summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xpost-update2
-rw-r--r--sh.conf.example2
2 files changed, 4 insertions, 0 deletions
diff --git a/post-update b/post-update
index bef2cac..0fcf5c0 100755
--- a/post-update
+++ b/post-update
@@ -3,6 +3,8 @@
default_branch="$(git rev-parse --abbrev-ref HEAD)"
default_branch_path="$(git rev-parse --symbolic-full-name HEAD)"
+mkdir -p info/web
+
if git show "$default_branch":README.md >/dev/null 2>&1; then
git show "$default_branch":README.md | tee info/web/README.md | cmark >info/web/README.html
else
diff --git a/sh.conf.example b/sh.conf.example
new file mode 100644
index 0000000..e830344
--- /dev/null
+++ b/sh.conf.example
@@ -0,0 +1,2 @@
+to_host="${to_host:-127.0.0.1}"
+to_port="${to_port:-1337}"