aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tuptime/tuptime-openrc.pre-install
blob: 68335091b8f4f9ba698b2c769837d8c6bfdab869 (plain)
1
2
3
4
5
6
7
8
#!/bin/sh

addgroup -S tuptime 2>/dev/null
adduser -S -D -h /var/lib/tuptime -s /bin/false -G tuptime -g tuptime tuptime 2>/dev/null

echo 'Tuptime needs to be executed now and at boot time, do it with: "rc-update add tuptime default && rc-service tuptime start"' 1>&2

exit 0