debmaker/ressources/zigbee2mqtt/rootfs/DEBIAN/postinst

4 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/