summaryrefslogtreecommitdiff
path: root/user/mosquitto/mosquitto.pre-install
diff options
context:
space:
mode:
authorA. Wilcox <awilcox@wilcox-tech.com>2019-09-28 15:04:14 +0000
committerA. Wilcox <awilcox@wilcox-tech.com>2019-09-28 15:04:14 +0000
commit5cd64ffbbf9c1744efcb0319d30735ce2cf5b471 (patch)
tree8150bc345cbcb976330aaa52882412e957aa4a62 /user/mosquitto/mosquitto.pre-install
parentf9ba226858a27bb322bad90ad988971f9afa8314 (diff)
parentdee3259450baedd016093d7ec23f1664a942822a (diff)
downloadpackages-5cd64ffbbf9c1744efcb0319d30735ce2cf5b471.tar.gz
packages-5cd64ffbbf9c1744efcb0319d30735ce2cf5b471.tar.bz2
packages-5cd64ffbbf9c1744efcb0319d30735ce2cf5b471.tar.xz
packages-5cd64ffbbf9c1744efcb0319d30735ce2cf5b471.zip
Merge branch 'mqtt' into 'master'
Add mosquitto and py3-paho-mqtt See merge request adelie/packages!328
Diffstat (limited to 'user/mosquitto/mosquitto.pre-install')
-rw-r--r--user/mosquitto/mosquitto.pre-install7
1 files changed, 7 insertions, 0 deletions
diff --git a/user/mosquitto/mosquitto.pre-install b/user/mosquitto/mosquitto.pre-install
new file mode 100644
index 000000000..ac36da04c
--- /dev/null
+++ b/user/mosquitto/mosquitto.pre-install
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+groupadd -r mosquitto 2>/dev/null
+useradd -c mosquitto -s /sbin/nologin -g mosquitto \
+ -m -d /var/empty -k /etc/skel -r mosquitto 2>/dev/null
+
+exit 0