diff options
Diffstat (limited to 'repos/extra/headscale/postinstall')
| -rw-r--r-- | repos/extra/headscale/postinstall | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/repos/extra/headscale/postinstall b/repos/extra/headscale/postinstall new file mode 100644 index 00000000..fa08bdc8 --- /dev/null +++ b/repos/extra/headscale/postinstall @@ -0,0 +1,8 @@ +#!/bin/sh + +addgroup -S headscale 2>/dev/null +adduser -S -D -H -h /var/lib/headscale -s /sbin/nologin -g headscale -G headscale headscale 2>/dev/null + +chmod 750 /var/lib/headscale +chown headscale:headscale /var/lib/headscale +chown headscale:headscale /etc/headscale |