debmaker/ressources/zigbee2mqtt/rootfs/DEBIAN/postinst

5 lines
161 B
Bash
Executable File

#!/bin/bash
id zigbee2mqtt &> /dev/null || useradd zigbee2mqtt -r -s /bin/false -md /var/lib/zigbee2mqtt
chown -R zigbee2mqtt:zigbee2mqtt /var/lib/zigbee2mqtt/