aboutsummaryrefslogtreecommitdiffstats
path: root/service/entrypoint.sh
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2021-04-28 10:51:50 +0200
committerLouis Burda <quent.burda@gmail.com>2021-04-28 10:51:50 +0200
commit8aac44bb98af5442e29c8cb9a5a4acbe40d96bb2 (patch)
treeb5cea78af979ad734edf5835f1917b172e09cfd7 /service/entrypoint.sh
parent53156862fa68b130c9a57f2824275f99017929ac (diff)
downloadenowars5-service-stldoctor-8aac44bb98af5442e29c8cb9a5a4acbe40d96bb2.tar.gz
enowars5-service-stldoctor-8aac44bb98af5442e29c8cb9a5a4acbe40d96bb2.zip
added sample service templates, basic service outline and moved service info to documentation dir
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