diff options
Diffstat (limited to 'pcr/mosquitto/mosquitto.install')
-rw-r--r-- | pcr/mosquitto/mosquitto.install | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pcr/mosquitto/mosquitto.install b/pcr/mosquitto/mosquitto.install index b2dfb9600..ab99d1d0f 100644 --- a/pcr/mosquitto/mosquitto.install +++ b/pcr/mosquitto/mosquitto.install @@ -1,10 +1,12 @@ 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 + getent group mosquitto > /dev/null || groupadd -g 567 mosquitto + getent passwd mosquitto > /dev/null || useradd -c 'Mosquitto MQTT Broker daemon' -d /etc/mosquitto -s /bin/false -g mosquitto -u 567 -g 567 mosquitto } post_upgrade() { post_install $1 + usermod -u 567 mosquitto + groupmod -g 567 mosquitto } post_remove() { |