From 6974cd4ccb24fd5bfa07f3db1de6636d82a45873 Mon Sep 17 00:00:00 2001 From: tteckster Date: Sun, 17 Apr 2022 14:17:31 -0400 Subject: [PATCH] Update zigbee2mqtt-install.sh --- setup/zigbee2mqtt-install.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/setup/zigbee2mqtt-install.sh b/setup/zigbee2mqtt-install.sh index 05fc2350..9a0efcda 100644 --- a/setup/zigbee2mqtt-install.sh +++ b/setup/zigbee2mqtt-install.sh @@ -66,6 +66,9 @@ msg_ok "Set up Zigbee2MQTT Repository" msg_info "Installing Zigbee2MQTT" cd /opt/zigbee2mqtt &>/dev/null npm ci &>/dev/null +msg_ok "Installed Zigbee2MQTT" + +msg_info "Creating Service" service_path="/etc/systemd/system/zigbee2mqtt.service" echo "[Unit] Description=zigbee2mqtt @@ -80,7 +83,7 @@ User=root [Install] WantedBy=multi-user.target" > $service_path systemctl enable zigbee2mqtt.service &>/dev/null -msg_ok "Installed Zigbee2MQTT" +msg_ok "Created Service" PASS=$(grep -w "root" /etc/shadow | cut -b6); if [[ $PASS != $ ]]; then