Your ROOT_URL in app.ini is https://git.bwnetwork.us/ but you are visiting http://git.bwnetwork.us/Administrator/Proxmox_Helper_scripts/commit/cf49c462a7dd4c368e8bb6090803db33f36e3bda?style=split&whitespace=show-all
You should set ROOT_URL correctly, otherwise the web may not work correctly.
1 changed files with
16 additions and
3 deletions
@ -38,12 +38,25 @@ cd /opt/zwave-js-ui
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-linux & >/dev/null
unzip zwave-js-ui-${ RELEASE } -linux.zip zwave-js-ui-linux & >/dev/null
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-linux
[ Install]
WantedBy = multi-user.target
EOF
echo -e " ${ CM } ${ CL } \r "
echo -e " ${ CM } ${ CL } \r "
echo -en " ${ GN } Cleanup... "
echo -en " ${ GN } Cleanup... "
rm zwave-js-ui-${ RELEASE } -linux.zip
rm -rf zwave-js-ui-${ RELEASE } -linux.zip zwave-js-ui
systemctl --system daemon-reload
systemctl daemon-reload
systemctl start zwave-js-ui.service
systemctl enable --now zwave-js-ui.service
echo -e " ${ CM } ${ CL } \n "
echo -e " ${ CM } ${ CL } \n "
echo -e " ${ GN } Finished ${ CL } "
echo -e " ${ GN } Finished ${ CL } "