summaryrefslogtreecommitdiff
path: root/testing/soju/soju.pre-install
blob: 537d8ae3e44a7cdec86b0e35ad5a800aab41a10b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

user=soju
group=soju

addgroup -S $group 2>/dev/null
adduser -S -D -h /var/lib/$user -s /sbin/nologin -G $group -g $user $user 2>/dev/null
# The soju home directory contains soju's database and irc logs, which are
# sensitive information.
chmod o-rwx /var/lib/$user

exit 0