From 6dcdc01be909f37d9b0a80fda2ced49f5567feb9 Mon Sep 17 00:00:00 2001 From: Nicolás Reynolds Date: Mon, 28 Jul 2014 19:30:51 -0300 Subject: mosquitto --- pcr/mosquitto/mosquitto.install | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 pcr/mosquitto/mosquitto.install (limited to 'pcr/mosquitto/mosquitto.install') diff --git a/pcr/mosquitto/mosquitto.install b/pcr/mosquitto/mosquitto.install new file mode 100644 index 000000000..b2dfb9600 --- /dev/null +++ b/pcr/mosquitto/mosquitto.install @@ -0,0 +1,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: -- cgit v1.2.3