From b3629b47dac9d2aac16554f5a19946716b019755 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Slavi=C5=A1a=20Are=C5=BEina?= <58952836+tremor021@users.noreply.github.com> Date: Wed, 17 Dec 2025 16:31:39 +0100 Subject: [PATCH] Refactor (#10060) --- ct/redis.sh | 3 ++- install/redis-install.sh | 25 +++++++++++-------------- 2 files changed, 13 insertions(+), 15 deletions(-) diff --git a/ct/redis.sh b/ct/redis.sh index 25b4bdfa8..f98acde69 100644 --- a/ct/redis.sh +++ b/ct/redis.sh @@ -27,9 +27,10 @@ function update_script() { msg_error "No ${APP} Installation Found!" exit fi + msg_info "Updating $APP LXC" $STD apt update - $STD apt -y upgrade + $STD apt upgrade -y msg_ok "Updated $APP LXC" msg_ok "Updated successfully!" exit diff --git a/install/redis-install.sh b/install/redis-install.sh index 90c72d235..e42b4a5ce 100644 --- a/install/redis-install.sh +++ b/install/redis-install.sh @@ -14,25 +14,22 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt install -y \ - apt-transport-https \ - lsb-release +$STD apt install -y apt-transport-https msg_ok "Installed Dependencies" -msg_info "Installing Redis" -curl -fsSL "https://packages.redis.io/gpg" | gpg --dearmor >/usr/share/keyrings/redis-archive-keyring.gpg -cat </etc/apt/sources.list.d/redis.sources -Types: deb -URIs: https://packages.redis.io/deb -Suites: $(lsb_release -cs) -Components: main -Signed-By: /usr/share/keyrings/redis-archive-keyring.gpg -EOF -$STD apt update +msg_info "Setting up Redis Repository" +setup_deb822_repo \ + "redis" \ + "https://packages.redis.io/gpg" \ + "https://packages.redis.io/deb" \ + "trixie" +msg_ok "Setup Redis Repository" + +msg_info "Setting up Redis" $STD apt install -y redis sed -i 's/^bind .*/bind 0.0.0.0/' /etc/redis/redis.conf systemctl enable -q --now redis-server -msg_ok "Installed Redis" +msg_ok "Setup Redis" motd_ssh customize