mirror of
https://github.com/tteck/Proxmox.git
synced 2024-12-02 11:03:56 +01:00
Update zwave-js-ui-install.sh
This commit is contained in:
parent
5d5809c78c
commit
342ce12290
@ -80,7 +80,7 @@ cd /opt/zwave-js-ui
|
|||||||
mkdir store
|
mkdir store
|
||||||
RELEASE=$(curl -s https://api.github.com/repos/zwave-js/zwave-js-ui/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
|
RELEASE=$(curl -s https://api.github.com/repos/zwave-js/zwave-js-ui/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
|
||||||
wget https://github.com/zwave-js/zwave-js-ui/releases/download/${RELEASE}/zwave-js-ui-${RELEASE}-linux.zip &>/dev/null
|
wget https://github.com/zwave-js/zwave-js-ui/releases/download/${RELEASE}/zwave-js-ui-${RELEASE}-linux.zip &>/dev/null
|
||||||
unzip zwave-js-ui-${RELEASE}-linux.zip zwave-js-ui &>/dev/null
|
unzip zwave-js-ui-${RELEASE}-linux.zip zwave-js-ui-linux &>/dev/null
|
||||||
msg_ok "Installed Z-Wave JS UI"
|
msg_ok "Installed Z-Wave JS UI"
|
||||||
|
|
||||||
msg_info "Creating Service"
|
msg_info "Creating Service"
|
||||||
@ -92,7 +92,7 @@ After=network-online.target
|
|||||||
[Service]
|
[Service]
|
||||||
User=root
|
User=root
|
||||||
WorkingDirectory=/opt/zwave-js-ui
|
WorkingDirectory=/opt/zwave-js-ui
|
||||||
ExecStart=/opt/zwave-js-ui/zwave-js-ui
|
ExecStart=/opt/zwave-js-ui/zwave-js-ui-linux
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target" > $service_path
|
WantedBy=multi-user.target" > $service_path
|
||||||
systemctl start zwave-js-ui
|
systemctl start zwave-js-ui
|
||||||
|
Loading…
Reference in New Issue
Block a user