From b39235d15ec26fe8f410c9445ab8277469ae7944 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Slavi=C5=A1a=20Are=C5=BEina?= <58952836+tremor021@users.noreply.github.com> Date: Fri, 22 Aug 2025 17:46:21 +0200 Subject: [PATCH] Update redlib-install.sh --- install/redlib-install.sh | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/install/redlib-install.sh b/install/redlib-install.sh index 97c11519..5472985d 100644 --- a/install/redlib-install.sh +++ b/install/redlib-install.sh @@ -5,7 +5,7 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://github.com/redlib-org/redlib -source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"e color verb_ip6 catch_errors @@ -13,17 +13,9 @@ setting_up_container network_check update_os -msg_info "Downloading Redlib" -RELEASE=$(curl -s https://api.github.com/repos/redlib-org/redlib/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') -$STD curl -fsSL -o /tmp/redlib-x86_64-unknown-linux-musl.tar.gz \ -"https://github.com/redlib-org/redlib/releases/latest/download/redlib-x86_64-unknown-linux-musl.tar.gz" -msg_ok "Downloaded Redlib" +fetch_and_deploy_gh_release "redlib" "redlib-org/redlib" "prebuild" "latest" "/opt/redlib" "redlib-x86_64-unknown-linux-musl.tar.gz" -msg_info "Installing Redlib" -mkdir /opt/redlib -$STD tar -xzf /tmp/redlib-x86_64-unknown-linux-musl.tar.gz -C /opt/redlib -$STD rm /tmp/redlib-x86_64-unknown-linux-musl.tar.gz -echo "${RELEASE}" >~/.redlib +msg_info "Configuring Redlib" cat </opt/redlib/redlib.conf ############################################ # Redlib Instance Configuration File @@ -61,7 +53,7 @@ PORT=5252 # Integer (0-65535) - Internal port #REDLIB_DEFAULT_FIXED_NAVBAR=on # ["on", "off"] #REDLIB_DEFAULT_REMOVE_DEFAULT_FEEDS=off # ["on", "off"] EOF -msg_ok "Installed Redlib" +msg_ok "Configured Redlib" msg_info "Creating Redlib Service" cat </etc/init.d/redlib