diff --git a/install.sh b/install.sh index 27aa4efb..ca9cd1a2 100644 --- a/install.sh +++ b/install.sh @@ -3,7 +3,7 @@ SCRIPT_VERSION="76" SCRIPT_URL='https://raw.githubusercontent.com/amidaware/tacticalrmm/master/install.sh' -sudo apt install -y curl wget dirmngr gnupg lsb-release +sudo apt install -y curl wget dirmngr gnupg lsb-release ca-certificates GREEN='\033[0;32m' YELLOW='\033[1;33m' @@ -252,7 +252,10 @@ done print_green 'Installing NodeJS' -curl -sL https://deb.nodesource.com/setup_18.x | sudo -E bash - +sudo mkdir -p /etc/apt/keyrings +curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg +NODE_MAJOR=18 +echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list sudo apt update sudo apt install -y gcc g++ make sudo apt install -y nodejs @@ -273,7 +276,7 @@ cd ~ sudo rm -rf Python-${PYTHON_VER} Python-${PYTHON_VER}.tgz print_green 'Installing redis and git' -sudo apt install -y ca-certificates redis git +sudo apt install -y redis git print_green 'Installing postgresql' diff --git a/restore.sh b/restore.sh index d76b5916..3e5189b7 100755 --- a/restore.sh +++ b/restore.sh @@ -4,7 +4,7 @@ SCRIPT_VERSION="51" SCRIPT_URL='https://raw.githubusercontent.com/amidaware/tacticalrmm/master/restore.sh' sudo apt update -sudo apt install -y curl wget dirmngr gnupg lsb-release +sudo apt install -y curl wget dirmngr gnupg lsb-release ca-certificates GREEN='\033[0;32m' YELLOW='\033[1;33m' @@ -122,7 +122,10 @@ sudo apt update print_green 'Installing NodeJS' -curl -sL https://deb.nodesource.com/setup_18.x | sudo -E bash - +sudo mkdir -p /etc/apt/keyrings +curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg +NODE_MAJOR=18 +echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list sudo apt update sudo apt install -y gcc g++ make sudo apt install -y nodejs @@ -244,7 +247,7 @@ cd ~ sudo rm -rf Python-${PYTHON_VER} Python-${PYTHON_VER}.tgz print_green 'Installing redis and git' -sudo apt install -y ca-certificates redis git +sudo apt install -y redis git print_green 'Installing postgresql'