summaryrefslogtreecommitdiff
path: root/hiccup
diff options
context:
space:
mode:
Diffstat (limited to 'hiccup')
-rw-r--r--hiccup/env.sample3
l---------hiccup/log/run1
-rwxr-xr-xhiccup/run12
3 files changed, 16 insertions, 0 deletions
diff --git a/hiccup/env.sample b/hiccup/env.sample
new file mode 100644
index 0000000..eb6231c
--- /dev/null
+++ b/hiccup/env.sample
@@ -0,0 +1,3 @@
+HOME=/home/someone
+HICCUP_USER=someone
+HICCUP_PATH=/home/someone/hiccup
diff --git a/hiccup/log/run b/hiccup/log/run
new file mode 120000
index 0000000..04b2c93
--- /dev/null
+++ b/hiccup/log/run
@@ -0,0 +1 @@
+../../.log/run \ No newline at end of file
diff --git a/hiccup/run b/hiccup/run
new file mode 100755
index 0000000..dc7f2c9
--- /dev/null
+++ b/hiccup/run
@@ -0,0 +1,12 @@
+#!/bin/execlineb
+
+envfile env
+
+importas -S HICCUP_USER
+s6-setuidgid $HICCUP_USER
+
+importas -S HICCUP_PATH
+cd $HICCUP_PATH
+
+foreground { make build }
+target/release/web