|
|
@ -54,7 +54,8 @@ function default_settings() { |
|
|
|
function update_script() { |
|
|
|
function update_script() { |
|
|
|
LXCIP=$(ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1) |
|
|
|
LXCIP=$(ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1) |
|
|
|
while true; do |
|
|
|
while true; do |
|
|
|
CHOICE=$(whiptail --title "SUPPORT" --menu "Select option" --cancel-button Exit-Script 11 58 3 \ |
|
|
|
CHOICE=$( |
|
|
|
|
|
|
|
whiptail --title "SUPPORT" --menu "Select option" --cancel-button Exit-Script 11 58 3 \ |
|
|
|
"1" "Check for Grafana Updates" \ |
|
|
|
"1" "Check for Grafana Updates" \ |
|
|
|
"2" "Allow 0.0.0.0 for listening" \ |
|
|
|
"2" "Allow 0.0.0.0 for listening" \ |
|
|
|
"3" "Allow only ${LXCIP} for listening" 3>&2 2>&1 1>&3 |
|
|
|
"3" "Allow only ${LXCIP} for listening" 3>&2 2>&1 1>&3 |
|
|
|