blob: 15f23d7f1f2f58db4e5d85df775c5abfa9b75e8f (
plain)
1
2
3
4
5
6
7
8
9
10
|
post_install() {
post_upgrade
passwd -l telegraf &>/dev/null
}
post_upgrade() {
# create user/group that the daemon will run as by default, do not delete this on uninstall, as it will own files
getent group telegraf >/dev/null || groupadd telegraf
getent passwd telegraf >/dev/null || useradd -c 'telegraf' -g telegraf -s /bin/false telegraf
}
|