aboutsummaryrefslogtreecommitdiff
path: root/repos/extra/headscale/postinstall
diff options
context:
space:
mode:
authoremmett1 <me@emmett1.my>2026-06-22 22:15:11 +0800
committeremmett1 <me@emmett1.my>2026-06-22 22:15:11 +0800
commitdeb0853528349e0b0d2fc0636dcfeb044e73b35b (patch)
treeda3750fcee48a6bc83953af0e7b7cd06f93a2fb9 /repos/extra/headscale/postinstall
parente77535b362933895c8634b41ed41efed5951e4a2 (diff)
downloadalicelinux-deb0853528349e0b0d2fc0636dcfeb044e73b35b.tar.gz
alicelinux-deb0853528349e0b0d2fc0636dcfeb044e73b35b.zip
headscale: new added
Diffstat (limited to 'repos/extra/headscale/postinstall')
-rw-r--r--repos/extra/headscale/postinstall8
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