浏览代码

Update alpine-v5.sh

tteckster 2 年之前
父节点
当前提交
6a26f5991c
共有 1 个文件被更改,包括 3 次插入4 次删除
  1. 3 4
      ct/alpine-v5.sh

+ 3 - 4
ct/alpine-v5.sh

@@ -84,7 +84,7 @@ if command -v pveversion >/dev/null 2>&1; then
   fi
 fi
 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!";
     exit 
   fi
@@ -310,9 +310,8 @@ function update_script() {
 clear
 header_info
 msg_info "Updating ${APP} LXC"
-apt-get update &>/dev/null
-apt-get -y upgrade &>/dev/null
-msg_ok "Updated ${APP} LXC"
+apk update &>/dev/null
+apk upgrade &>/dev/null
 msg_ok "Update Successfull"
 exit
 }