feat: address review comments

pull/2371/head
Madhur Ahuja 2 years ago
parent 6064ddf446
commit 56137432a9
  1. 1
      ct/redis.sh
  2. 6
      install/redis-install.sh

@ -8,6 +8,7 @@ source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/build
function header_info {
clear
cat <<"EOF"
____ ___
/ __ \___ ____/ (_)____
/ /_/ / _ \/ __ / / ___/

@ -19,17 +19,15 @@ $STD apt-get install -y sudo
$STD apt-get install -y mc
$STD apt-get install -y apt-transport-https
$STD apt-get install -y gnupg
$STD apt-get install -y lsb-release
msg_ok "Installed Dependencies"
msg_info "Installing Redis"
curl -fsSL https://packages.redis.io/gpg | sudo gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/redis.list
echo "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb $(grep '^VERSION_CODENAME=' /etc/os-release | cut -d'=' -f2) main" | sudo tee /etc/apt/sources.list.d/redis.list
$STD apt-get update
$STD apt-get install -y redis
sed -i 's/^bind .*/bind 0.0.0.0/' /etc/redis/redis.conf
systemctl enable -q redis-server.service
systemctl restart -q redis-server.service
systemctl enable -q --now redis-server.service
msg_ok "Installed Redis"
motd_ssh

Loading…
Cancel
Save