From 8cfba49559471a40324b9eb17eb512473e111c1e Mon Sep 17 00:00:00 2001 From: wh1te909 <7434746+wh1te909@users.noreply.github.com> Date: Thu, 25 Apr 2024 22:03:22 +0000 Subject: [PATCH] add noninteractive --- backup.sh | 2 ++ install.sh | 4 +++- restore.sh | 4 +++- update.sh | 4 +++- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/backup.sh b/backup.sh index 6f6a6f56ea..f1f50efc4b 100755 --- a/backup.sh +++ b/backup.sh @@ -2,6 +2,8 @@ SCRIPT_VERSION="32" +export DEBIAN_FRONTEND=noninteractive + GREEN='\033[0;32m' YELLOW='\033[1;33m' BLUE='\033[0;34m' diff --git a/install.sh b/install.sh index b4f217932c..2436561c51 100644 --- a/install.sh +++ b/install.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -SCRIPT_VERSION="83" +SCRIPT_VERSION="84" SCRIPT_URL="https://raw.githubusercontent.com/amidaware/tacticalrmm/master/install.sh" sudo apt install -y curl wget dirmngr gnupg lsb-release ca-certificates @@ -33,6 +33,8 @@ fi rm -f $TMP_FILE +export DEBIAN_FRONTEND=noninteractive + if [ -d /rmm/api/tacticalrmm ]; then echo -ne "${RED}ERROR: Existing trmm installation found. The install script must be run on a clean server.${NC}\n" exit 1 diff --git a/restore.sh b/restore.sh index fc9b452846..5bf5669efb 100755 --- a/restore.sh +++ b/restore.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -SCRIPT_VERSION="57" +SCRIPT_VERSION="58" SCRIPT_URL='https://raw.githubusercontent.com/amidaware/tacticalrmm/master/restore.sh' sudo apt update @@ -29,6 +29,8 @@ fi rm -f $TMP_FILE +export DEBIAN_FRONTEND=noninteractive + if [ -d /rmm/api/tacticalrmm ]; then echo -ne "${RED}ERROR: Existing trmm installation found. The restore script must be run on a clean server, please re-read the docs.${NC}\n" exit 1 diff --git a/update.sh b/update.sh index fd67c37c85..c27eac7309 100644 --- a/update.sh +++ b/update.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -SCRIPT_VERSION="152" +SCRIPT_VERSION="153" SCRIPT_URL='https://raw.githubusercontent.com/amidaware/tacticalrmm/master/update.sh' LATEST_SETTINGS_URL='https://raw.githubusercontent.com/amidaware/tacticalrmm/master/api/tacticalrmm/tacticalrmm/settings.py' YELLOW='\033[1;33m' @@ -26,6 +26,8 @@ fi rm -f $TMP_FILE +export DEBIAN_FRONTEND=noninteractive + force=false if [[ $* == *--force* ]]; then force=true