Skip to content

Commit

Permalink
add noninteractive
Browse files Browse the repository at this point in the history
  • Loading branch information
wh1te909 committed Apr 25, 2024
1 parent 168f053 commit 8cfba49
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
2 changes: 2 additions & 0 deletions backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

SCRIPT_VERSION="32"

export DEBIAN_FRONTEND=noninteractive

GREEN='\033[0;32m'
YELLOW='\033[1;33m'
BLUE='\033[0;34m'
Expand Down
4 changes: 3 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion restore.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion update.sh
Original file line number Diff line number Diff line change
@@ -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'
Expand All @@ -26,6 +26,8 @@ fi

rm -f $TMP_FILE

export DEBIAN_FRONTEND=noninteractive

force=false
if [[ $* == *--force* ]]; then
force=true
Expand Down

0 comments on commit 8cfba49

Please sign in to comment.