blob: d25c16f516f13a7fb29443ef749d277f9ea6a90d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
post_install() {
getent group nanomq > /dev/null || groupadd nanomq
getent passwd nanomq > /dev/null || useradd -c 'NanoMQ MQTT Broker User' -s /bin/false -g nanomq nanomq
chown nanomq:nanomq /etc/nanomq*.conf
}
post_upgrade() {
post_install "$@"
}
post_remove() {
echo "You may want to remove nanomq user and group"
}
|