Update redlib-install.sh
This commit is contained in:
parent
e988634b34
commit
b39235d15e
@ -5,7 +5,7 @@
|
|||||||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||||
# Source: https://github.com/redlib-org/redlib
|
# Source: https://github.com/redlib-org/redlib
|
||||||
|
|
||||||
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"e
|
||||||
color
|
color
|
||||||
verb_ip6
|
verb_ip6
|
||||||
catch_errors
|
catch_errors
|
||||||
@ -13,17 +13,9 @@ setting_up_container
|
|||||||
network_check
|
network_check
|
||||||
update_os
|
update_os
|
||||||
|
|
||||||
msg_info "Downloading Redlib"
|
fetch_and_deploy_gh_release "redlib" "redlib-org/redlib" "prebuild" "latest" "/opt/redlib" "redlib-x86_64-unknown-linux-musl.tar.gz"
|
||||||
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"
|
|
||||||
|
|
||||||
msg_info "Installing Redlib"
|
msg_info "Configuring 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
|
|
||||||
cat <<EOF >/opt/redlib/redlib.conf
|
cat <<EOF >/opt/redlib/redlib.conf
|
||||||
############################################
|
############################################
|
||||||
# Redlib Instance Configuration File
|
# Redlib Instance Configuration File
|
||||||
@ -61,7 +53,7 @@ PORT=5252 # Integer (0-65535) - Internal port
|
|||||||
#REDLIB_DEFAULT_FIXED_NAVBAR=on # ["on", "off"]
|
#REDLIB_DEFAULT_FIXED_NAVBAR=on # ["on", "off"]
|
||||||
#REDLIB_DEFAULT_REMOVE_DEFAULT_FEEDS=off # ["on", "off"]
|
#REDLIB_DEFAULT_REMOVE_DEFAULT_FEEDS=off # ["on", "off"]
|
||||||
EOF
|
EOF
|
||||||
msg_ok "Installed Redlib"
|
msg_ok "Configured Redlib"
|
||||||
|
|
||||||
msg_info "Creating Redlib Service"
|
msg_info "Creating Redlib Service"
|
||||||
cat <<EOF >/etc/init.d/redlib
|
cat <<EOF >/etc/init.d/redlib
|
||||||
|
Loading…
x
Reference in New Issue
Block a user