aboutsummaryrefslogtreecommitdiffstats
path: root/community/gmnisrv/gmnisrv.pre-install
blob: 4b2cec937161c560bb7307fb9e213f62800bf22a (plain) (blame)
1
2
3
4
5
6
7
#!/bin/sh
grep '^gmnisrv:' /etc/group >/dev/null || addgroup -S gmnisrv 2>/dev/null
grep '^gemini:' /etc/group >/dev/null || addgroup -S gemini 2>/dev/null
grep '^gmnisrv:' /etc/passwd >/dev/null || adduser -SDh/srv/gemini \
	-s/sbin/nologin -Ggemini -ggmnisrv gmnisrv gmnisrv 2>/dev/null
install -dm755 -ggemini /srv/gemini
install -dm755 -ggmnisrv /var/lib/gemini/certs