mirror of
https://github.com/tteck/Proxmox.git
synced 2024-11-17 20:11:17 +00:00
Update zigbee2mqtt-install.sh
This commit is contained in:
parent
5d47b17d40
commit
8c619bcf7f
@ -86,11 +86,22 @@ apt-get install -y nodejs &>/dev/null
|
|||||||
msg_ok "Installed Node.js"
|
msg_ok "Installed Node.js"
|
||||||
|
|
||||||
msg_info "Setting up Zigbee2MQTT Repository"
|
msg_info "Setting up Zigbee2MQTT Repository"
|
||||||
sudo git clone --depth 1 https://github.com/Koenkk/zigbee2mqtt.git /opt/zigbee2mqtt &>/dev/null
|
git clone https://github.com/Koenkk/zigbee2mqtt.git /opt/zigbee2mqtt &>/dev/null
|
||||||
msg_ok "Set up Zigbee2MQTT Repository"
|
msg_ok "Set up Zigbee2MQTT Repository"
|
||||||
|
|
||||||
|
read -r -p "Switch to Edge/dev branch? (y/N) " prompt
|
||||||
|
if [[ $prompt == "y" ]]
|
||||||
|
then
|
||||||
|
DEV="y"
|
||||||
|
else
|
||||||
|
DEV="n"
|
||||||
|
fi
|
||||||
|
|
||||||
msg_info "Installing Zigbee2MQTT"
|
msg_info "Installing Zigbee2MQTT"
|
||||||
cd /opt/zigbee2mqtt &>/dev/null
|
cd /opt/zigbee2mqtt &>/dev/null
|
||||||
|
if [[ $DEV == "y" ]]; then
|
||||||
|
git checkout dev &>/dev/null
|
||||||
|
fi
|
||||||
npm ci &>/dev/null
|
npm ci &>/dev/null
|
||||||
msg_ok "Installed Zigbee2MQTT"
|
msg_ok "Installed Zigbee2MQTT"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user