aboutsummaryrefslogtreecommitdiffstats
path: root/service/entrypoint.sh
diff options
context:
space:
mode:
Diffstat (limited to 'service/entrypoint.sh')
-rwxr-xr-xservice/entrypoint.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/service/entrypoint.sh b/service/entrypoint.sh
new file mode 100755
index 0000000..5445e3e
--- /dev/null
+++ b/service/entrypoint.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+set -e
+set -x
+
+# Chown the mounted data volume
+chown -R service:service "/data/"
+
+# Launch our service as user 'service'
+exec su -s /bin/sh -c 'PYTHONUNBUFFERED=1 python3 n0t3b00k.py' service \ No newline at end of file