diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-07-28 19:30:51 -0300 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-07-28 19:30:51 -0300 |
commit | 6dcdc01be909f37d9b0a80fda2ced49f5567feb9 (patch) | |
tree | 7b8d7a5c6ca2b494af3a743c34f6fe00878627ae /pcr/mosquitto/mosquitto.install | |
parent | 749931b987f1e81d31c14e18c43081f44b5a2bca (diff) |
mosquitto
Diffstat (limited to 'pcr/mosquitto/mosquitto.install')
-rw-r--r-- | pcr/mosquitto/mosquitto.install | 15 |
1 files changed, 15 insertions, 0 deletions
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: |