summaryrefslogtreecommitdiff
path: root/user/mosquitto/mosquitto.pre-install
diff options
context:
space:
mode:
authorMax Rees <maxcrees@me.com>2019-08-27 19:05:42 -0500
committerMax Rees <maxcrees@me.com>2019-08-27 19:14:37 -0500
commita1ee5f0e6ac73ea9cc57706114ed0b43d6c691fe (patch)
treea3758e4fc94124eef2119ace9c4ac80881ac52a3 /user/mosquitto/mosquitto.pre-install
parent4a3fb555bd3f8141225a2b5e40f2a5fd7d9484ec (diff)
downloadpackages-a1ee5f0e6ac73ea9cc57706114ed0b43d6c691fe.tar.gz
packages-a1ee5f0e6ac73ea9cc57706114ed0b43d6c691fe.tar.bz2
packages-a1ee5f0e6ac73ea9cc57706114ed0b43d6c691fe.tar.xz
packages-a1ee5f0e6ac73ea9cc57706114ed0b43d6c691fe.zip
user/mosquitto: new package
In the future: * cunit may be added to run unit tests. * libwebsockets may be added for websocket support.
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