summaryrefslogtreecommitdiff
path: root/pcr/mosquitto/mosquitto.install
blob: b2dfb9600b89af8e06c1fe5ab0199f8f03ccbbd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
post_install() {
  getent group mosquitto > /dev/null || groupadd mosquitto
  getent passwd mosquitto > /dev/null || useradd -c 'Mosquitto MQTT Broker daemon' -d /etc/mosquitto -s /bin/false -g mosquitto mosquitto
}

post_upgrade() {
  post_install $1
}

post_remove() {
  post_install $1
  echo "You may want to remove mosquitto user and group"
}

# vim:set ts=2 sw=2 et: