From 268a36a87102544a4d37f23a9e076349173706f7 Mon Sep 17 00:00:00 2001
From: tteckster <tteckster@gmail.com>
Date: Sat, 18 Mar 2023 20:32:07 -0400
Subject: [PATCH] Update alpine-grafana-v5.sh

Tweak
---
 ct/alpine-grafana-v5.sh | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/ct/alpine-grafana-v5.sh b/ct/alpine-grafana-v5.sh
index 72f76fa1..e2b6f275 100644
--- a/ct/alpine-grafana-v5.sh
+++ b/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