Update alpine-v5.sh

This commit is contained in:
tteckster 2023-01-09 14:44:12 -05:00 committed by GitHub
parent ee09697ddb
commit 6a26f5991c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 4 deletions

View File

@ -84,7 +84,7 @@ if command -v pveversion >/dev/null 2>&1; then
fi fi
fi fi
if ! command -v pveversion >/dev/null 2>&1; then if ! command -v pveversion >/dev/null 2>&1; then
if [[ ! -f /etc/apt/sources.list.d/emqx_emqx.list ]]; then if [[ ! -f /etc/alpine-release ]]; then
msg_error "No ${APP} Installation Found!"; msg_error "No ${APP} Installation Found!";
exit exit
fi fi
@ -310,9 +310,8 @@ function update_script() {
clear clear
header_info header_info
msg_info "Updating ${APP} LXC" msg_info "Updating ${APP} LXC"
apt-get update &>/dev/null apk update &>/dev/null
apt-get -y upgrade &>/dev/null apk upgrade &>/dev/null
msg_ok "Updated ${APP} LXC"
msg_ok "Update Successfull" msg_ok "Update Successfull"
exit exit
} }