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