aboutsummaryrefslogtreecommitdiff
path: root/tor/postinstall
diff options
context:
space:
mode:
authorWoodpecker CI <emmett1.2miligrams@protonmail.com>2026-06-20 14:22:53 +0000
committerWoodpecker CI <emmett1.2miligrams@protonmail.com>2026-06-20 14:22:53 +0000
commitda9b5ae270f2594c813072695b807f5ee7b5acd3 (patch)
tree30a4089b7b85279a9ba07b77ba9aa616eb061db1 /tor/postinstall
parent825af3ce976093bfc936f3fe3440a74869dc1ba4 (diff)
downloadalicelinux-da9b5ae270f2594c813072695b807f5ee7b5acd3.tar.gz
alicelinux-da9b5ae270f2594c813072695b807f5ee7b5acd3.zip
Woodpecker CI a064f3970799c33ab248649e5218c3137d43447b [SKIP CI]
Diffstat (limited to 'tor/postinstall')
-rwxr-xr-xtor/postinstall7
1 files changed, 7 insertions, 0 deletions
diff --git a/tor/postinstall b/tor/postinstall
new file mode 100755
index 00000000..527ddedf
--- /dev/null
+++ b/tor/postinstall
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+addgroup -S tor 2>/dev/null
+adduser -S -D -H -h /var/lib/tor -s /sbin/nologin -g tor -G tor tor 2>/dev/null
+
+chmod 700 /var/lib/tor
+chown tor:tor /var/lib/tor