summaryrefslogtreecommitdiff
path: root/images/znc/service
diff options
context:
space:
mode:
Diffstat (limited to 'images/znc/service')
-rw-r--r--images/znc/service/znc/run5
1 files changed, 5 insertions, 0 deletions
diff --git a/images/znc/service/znc/run b/images/znc/service/znc/run
new file mode 100644
index 0000000..14814ea
--- /dev/null
+++ b/images/znc/service/znc/run
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+chown -R znc /data
+setcap 'cap_net_bind_service=+ep' /app/znc/bin/znc
+exec sudo -u znc /app/znc/bin/znc --foreground --datadir /data