summaryrefslogtreecommitdiffstats
path: root/main/strongswan/strongswan.pre-install
blob: e1fa31974da7f2c59396f386b1043e0c57dd4be9 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

if ! getent group ipsec >/dev/null; then
	addgroup -S ipsec
fi
if ! getent passwd ipsec >/dev/null; then
	adduser -S -H -h /var/empty -s /sbin/nologin -D -G ipsec ipsec 2>/dev/null
fi

exit 0