mirror of
https://github.com/tteck/Proxmox.git
synced 2024-11-30 02:14:34 +01:00
Update zwave-js-ui.sh
fixes https://github.com/tteck/Proxmox/issues/2129
This commit is contained in:
parent
de0fd7aa6d
commit
6594ce2f3a
@ -64,7 +64,19 @@ function update_script() {
|
||||
msg_info "Updating Z-wave JS UI"
|
||||
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 &>/dev/null
|
||||
\cp -R zwave-js-ui-linux /opt/zwave-js-ui
|
||||
\cp -R zwave-js-ui /opt/zwave-js-ui
|
||||
cat <<EOF >/etc/systemd/system/zwave-js-ui.service
|
||||
[Unit]
|
||||
Description=zwave-js-ui
|
||||
Wants=network-online.target
|
||||
After=network-online.target
|
||||
[Service]
|
||||
User=root
|
||||
WorkingDirectory=/opt/zwave-js-ui
|
||||
ExecStart=/opt/zwave-js-ui/zwave-js-ui
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
EOF
|
||||
msg_ok "Updated Z-wave JS UI"
|
||||
|
||||
msg_info "Starting Z-wave JS UI"
|
||||
|
Loading…
Reference in New Issue
Block a user