Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/vm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorszaimen <szaimen@e.mail.de>2020-09-04 10:05:47 +0300
committerGitHub <noreply@github.com>2020-09-04 10:05:47 +0300
commitc42ec1d992d4ac995c6700affe05ba74cdb99c4c (patch)
treeb53ae82a9916e7e66e064e08b5c124eb89c6dcb8 /apps/netdata.sh
parent80dc7b6293f260f6261a6757ead1cfe717fa5ed6 (diff)
add SCRIPT_NAME to all scripts and standardize whiptail-titles (#1400)
Signed-off-by: enoch85 <github@hanssonit.se> Co-authored-by: enoch85 <github@hanssonit.se>
Diffstat (limited to 'apps/netdata.sh')
-rw-r--r--apps/netdata.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/netdata.sh b/apps/netdata.sh
index e212f00c..ec8e4564 100644
--- a/apps/netdata.sh
+++ b/apps/netdata.sh
@@ -4,6 +4,7 @@
# shellcheck disable=2034,2059
true
+SCRIPT_NAME="Netdata"
# shellcheck source=lib.sh
. <(curl -sL https://raw.githubusercontent.com/nextcloud/vm/master/lib.sh)
@@ -20,7 +21,7 @@ root_check
print_text_in_color "$ICyan" "Checking if Netdata is already installed..."
if [ -d /etc/netdata ]
then
- choice=$(whiptail --radiolist "It seems like 'Netdata' is already installed.\nChoose what you want to do.\nSelect by pressing the spacebar and ENTER" "$WT_HEIGHT" "$WT_WIDTH" 4 \
+ choice=$(whiptail --title "$TITLE" --radiolist "It seems like 'Netdata' is already installed.\nChoose what you want to do.\nSelect by pressing the spacebar and ENTER" "$WT_HEIGHT" "$WT_WIDTH" 4 \
"Uninstall Netdata" "" OFF \
"Reinstall Netdata" "" ON 3>&1 1>&2 2>&3)