This commit is contained in:
Slaviša Arežina 2025-12-17 16:31:39 +01:00 committed by GitHub
parent 82cdcf7bfe
commit b3629b47da
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 13 additions and 15 deletions

View File

@ -27,9 +27,10 @@ function update_script() {
msg_error "No ${APP} Installation Found!" msg_error "No ${APP} Installation Found!"
exit exit
fi fi
msg_info "Updating $APP LXC" msg_info "Updating $APP LXC"
$STD apt update $STD apt update
$STD apt -y upgrade $STD apt upgrade -y
msg_ok "Updated $APP LXC" msg_ok "Updated $APP LXC"
msg_ok "Updated successfully!" msg_ok "Updated successfully!"
exit exit

View File

@ -14,25 +14,22 @@ network_check
update_os update_os
msg_info "Installing Dependencies" msg_info "Installing Dependencies"
$STD apt install -y \ $STD apt install -y apt-transport-https
apt-transport-https \
lsb-release
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
msg_info "Installing Redis" msg_info "Setting up Redis Repository"
curl -fsSL "https://packages.redis.io/gpg" | gpg --dearmor >/usr/share/keyrings/redis-archive-keyring.gpg setup_deb822_repo \
cat <<EOF >/etc/apt/sources.list.d/redis.sources "redis" \
Types: deb "https://packages.redis.io/gpg" \
URIs: https://packages.redis.io/deb "https://packages.redis.io/deb" \
Suites: $(lsb_release -cs) "trixie"
Components: main msg_ok "Setup Redis Repository"
Signed-By: /usr/share/keyrings/redis-archive-keyring.gpg
EOF msg_info "Setting up Redis"
$STD apt update
$STD apt install -y redis $STD apt install -y redis
sed -i 's/^bind .*/bind 0.0.0.0/' /etc/redis/redis.conf sed -i 's/^bind .*/bind 0.0.0.0/' /etc/redis/redis.conf
systemctl enable -q --now redis-server systemctl enable -q --now redis-server
msg_ok "Installed Redis" msg_ok "Setup Redis"
motd_ssh motd_ssh
customize customize