From 0aa9ffee332aaa081b26f4b5ac6cf1ad278fecf3 Mon Sep 17 00:00:00 2001 From: tteckster Date: Tue, 1 Aug 2023 12:08:09 -0400 Subject: [PATCH] Update filebrowser.sh New release issues, revert to 2.23.0 --- misc/filebrowser.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/misc/filebrowser.sh b/misc/filebrowser.sh index 02545b48..81958d23 100644 --- a/misc/filebrowser.sh +++ b/misc/filebrowser.sh @@ -67,7 +67,8 @@ function msg_ok() { } msg_info "Installing ${APP}" -bash <(curl -fsSL https://raw.githubusercontent.com/filebrowser/get/master/get.sh) &>/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