From a2d8aa3cd2421e998d1e8f73f152f69066673ca1 Mon Sep 17 00:00:00 2001 From: tteckster Date: Wed, 5 Oct 2022 21:52:35 -0400 Subject: [PATCH] Update zwave-js-ui-update.sh --- misc/zwave-js-ui-update.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/misc/zwave-js-ui-update.sh b/misc/zwave-js-ui-update.sh index f7ef7e67..514b5664 100644 --- a/misc/zwave-js-ui-update.sh +++ b/misc/zwave-js-ui-update.sh @@ -36,7 +36,7 @@ echo -en "${GN} Updating Z-wave JS UI... " systemctl stop zwave-js-ui.service 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 -unzip zwave-js-ui-${RELEASE}-linux.zip zwave-js-ui-linux &>/dev/null +unzip zwave-js-ui-${RELEASE}-linux.zip &>/dev/null \cp -R zwave-js-ui-linux /opt/zwave-js-ui cat << EOF > /etc/systemd/system/zwave-js-ui.service @@ -54,10 +54,9 @@ EOF echo -e "${CM}${CL} \r" echo -en "${GN} Cleanup... " -rm -rf zwave-js-ui-${RELEASE}-linux.zip store zwave-js-ui-linux +rm -rf zwave-js-ui-${RELEASE}-linux.zip zwave-js-ui-linux store systemctl daemon-reload systemctl enable --now zwave-js-ui.service echo -e "${CM}${CL} \n" echo -e "${GN} Finished ${CL}" -