From 34b16c861e8714ae6795bd8ac4b895506942a5cf Mon Sep 17 00:00:00 2001 From: tteckster Date: Wed, 2 Aug 2023 20:11:58 -0400 Subject: [PATCH] Update homeassistant-core.sh New release issues, revert to 2.23.0 fixes https://github.com/tteck/Proxmox/issues/1660 --- ct/homeassistant-core.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ct/homeassistant-core.sh b/ct/homeassistant-core.sh index 48065814..ed069489 100644 --- a/ct/homeassistant-core.sh +++ b/ct/homeassistant-core.sh @@ -107,7 +107,8 @@ function update_script() { fi if [ "$UPD" == "3" ]; then msg_info "Installing FileBrowser" - curl -fsSL https://raw.githubusercontent.com/filebrowser/get/master/get.sh | bash &>/dev/null + RELEASE=$(curl -fsSL https://api.github.com/repos/filebrowser/filebrowser/releases/latest | grep -o '"tag_name": ".*"' | sed 's/"//g' | sed 's/tag_name: //g') + curl -fsSL https://github.com/filebrowser/filebrowser/releases/download/v2.23.0/linux-amd64-filebrowser.tar.gz | tar -xzv -C /usr/local/bin &>/dev/null filebrowser config init -a '0.0.0.0' &>/dev/null filebrowser config set -a '0.0.0.0' &>/dev/null filebrowser users add admin changeme --perm.admin &>/dev/null