summaryrefslogtreecommitdiff
path: root/pcr/mosquitto/mosquitto.install
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-08-16 22:14:37 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-08-16 22:14:37 -0300
commit0764802a57fabd6d7cd747950d5438613d082c2c (patch)
tree727af5679f602a3f0d280ab9ba5b4a58278b1c67 /pcr/mosquitto/mosquitto.install
parent3fd54e8d0477bb8e047fb7742ab979d7d53021aa (diff)
parent8dbd7fce76ef6fe7e366d8192c6484d0fe85ab0d (diff)
downloadabslibre-0764802a57fabd6d7cd747950d5438613d082c2c.tar.gz
abslibre-0764802a57fabd6d7cd747950d5438613d082c2c.tar.bz2
abslibre-0764802a57fabd6d7cd747950d5438613d082c2c.zip
Merge branch 'master' of ssh://lukeshu.com:1863/srv/git/mirror/parabola/abslibre
Diffstat (limited to 'pcr/mosquitto/mosquitto.install')
-rw-r--r--pcr/mosquitto/mosquitto.install15
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: