summaryrefslogtreecommitdiff
path: root/user/mosquitto/mosquitto.pre-install
diff options
context:
space:
mode:
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