Refactor (#10060)
This commit is contained in:
parent
82cdcf7bfe
commit
b3629b47da
@ -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
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user