Update zwave-js-ui.sh

tweak service file
This commit is contained in:
tteckster 2023-11-30 14:23:45 -05:00 committed by GitHub
parent 76dbbf91ed
commit d4c685f05e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 12 deletions

View File

@ -65,8 +65,8 @@ function update_script() {
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 &>/dev/null unzip zwave-js-ui-${RELEASE}-linux.zip &>/dev/null
\cp -R zwave-js-ui /opt/zwave-js-ui \cp -R zwave-js-ui /opt/zwave-js-ui
cat <<EOF >/etc/systemd/system/zwave-js-ui.service service_path="/etc/systemd/system/zwave-js-ui.service"
[Unit] echo "[Unit]
Description=zwave-js-ui Description=zwave-js-ui
Wants=network-online.target Wants=network-online.target
After=network-online.target After=network-online.target
@ -75,8 +75,7 @@ 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
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target" >$service_path
EOF
msg_ok "Updated Z-wave JS UI" msg_ok "Updated Z-wave JS UI"
msg_info "Starting Z-wave JS UI" msg_info "Starting Z-wave JS UI"