浏览代码

Update alpine-grafana-v5.sh

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

+ 4 - 6
ct/alpine-grafana-v5.sh

@@ -371,13 +371,11 @@ if command -v pveversion >/dev/null 2>&1; then
 fi
 
 if ! command -v pveversion >/dev/null 2>&1; then
-  if ! (whiptail --title "${APP} LXC UPDATE" --yesno "This will update ${APP} LXC.  Proceed?" 10 58); then
-    clear
-    echo -e "⚠  User exited script \n"
-    exit
+  if [[ ! -f /etc/conf.d/grafana ]]; then
+    msg_error "No ${APP} Installation Found!"
+  else
+    update_script
   fi
-  update_script  
-fi
 
 if [ "$VERB" == "yes" ]; then set -x; fi
 if [ "$CT_TYPE" == "1" ]; then