Update zwave-js-ui.sh

tweak
pull/2133/head
tteckster 1 year ago committed by GitHub
parent 6594ce2f3a
commit 76dbbf91ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -65,18 +65,18 @@ function update_script() {
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 /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
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…
Cancel
Save

Powered by BW's shoe-string budget.