Address CrazyWolf13 review
This commit is contained in:
parent
b745fd01b2
commit
03592b9946
16
ct/valkey.sh
16
ct/valkey.sh
@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
|
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func)
|
||||||
# Copyright (c) 2021-2025 tteck
|
# Copyright (c) 2021-2025 community-scripts ORG
|
||||||
# Author: tteck (tteckster)
|
# Author: pshankinclarke (lazarillo)
|
||||||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||||
# Source: https://valkey.io/
|
# Source: https://valkey.io/
|
||||||
|
|
||||||
@ -24,13 +24,13 @@ function update_script() {
|
|||||||
check_container_storage
|
check_container_storage
|
||||||
check_container_resources
|
check_container_resources
|
||||||
if [[ ! -f /lib/systemd/system/valkey-server.service ]]; then
|
if [[ ! -f /lib/systemd/system/valkey-server.service ]]; then
|
||||||
msg_error "No ${APP} Installation Found!"
|
msg_error "No Valkey Installation Found!"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
msg_info "Updating $APP LXC"
|
msg_info "Updating Valkey LXC"
|
||||||
$STD apt update
|
$STD apt update
|
||||||
$STD apt -y upgrade
|
$STD apt -y upgrade
|
||||||
msg_ok "Updated $APP LXC"
|
msg_ok "Updated Valkey LXC"
|
||||||
msg_ok "Updated successfully!"
|
msg_ok "Updated successfully!"
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
@ -41,5 +41,5 @@ description
|
|||||||
|
|
||||||
msg_ok "Completed Successfully!\n"
|
msg_ok "Completed Successfully!\n"
|
||||||
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
|
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
|
||||||
echo -e "${INFO}${YW} Access it using the following IP:${CL}"
|
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
|
||||||
echo -e "${TAB}${GATEWAY}${BGN}${IP}:6379${CL}"
|
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:6379${CL}"
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# Copyright (c) 2021-2025 tteck
|
# Copyright (c) 2021-2025 community-scripts ORG
|
||||||
# Author: tteck (tteckster)
|
# Author: pshankinclarke (lazarillo)
|
||||||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||||
# Source: https://valkey.io/
|
# Source: https://valkey.io/
|
||||||
|
|
||||||
@ -13,25 +13,6 @@ setting_up_container
|
|||||||
network_check
|
network_check
|
||||||
update_os
|
update_os
|
||||||
|
|
||||||
msg_info "Installing Dependencies"
|
|
||||||
$STD apt install -y \
|
|
||||||
apt-transport-https \
|
|
||||||
lsb-release
|
|
||||||
msg_ok "Installed Dependencies"
|
|
||||||
|
|
||||||
DEB_VER="$(cat /etc/debian_version)"
|
|
||||||
|
|
||||||
if [[ "$DEB_VER" =~ ^([0-9]+) ]]; then
|
|
||||||
MAJOR="${BASH_REMATCH[1]}"
|
|
||||||
if (( MAJOR < 13 )); then
|
|
||||||
msg_error "Unsupported Debian version."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
msg_error "Unable to determine Debian version."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
msg_info "Installing Valkey"
|
msg_info "Installing Valkey"
|
||||||
$STD apt update
|
$STD apt update
|
||||||
$STD apt install -y valkey
|
$STD apt install -y valkey
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user