OpenIPC / webui

OpenIPC web interface.
https://openipc.org
MIT License
45 stars 41 forks source link

broken update script updatewebui.sh #239

Closed CapnRon closed 9 months ago

CapnRon commented 9 months ago

updatewebui.sh is pulling from "/OpenIPC/microbe-web/archive/refs/heads" instead of "/OpenIPC/webui/archive/refs/heads/". Changing that block as listed below allows more current update on master

if [ -n "$branch" ]; then
        url="https://github.com/OpenIPC/webui/archive/refs/heads/${branch}.zip"
        bundle_dir="webui-${branch}"
elif [ -n "$commit" ]; then
        url="https://github.com/OpenIPC/webui/archive/${commit}.zip"
        bundle_dir="webui-${commit}"
else
        echo_c 31 "branch: ${branch}, commit: ${commit}"
        echo_c 33 "You need to specify either a branch or a commit hash!"
        print_usage
        exit 0
fi
viktorxda commented 9 months ago

Edit: This was already changed on the current file, for previous versions the following workaround can be used:

sed -i "s/microbe-web/webui/g" /usr/sbin/updatewebui.sh