diff --git a/install.sh b/install.sh index 469a98f..f86fd32 100644 --- a/install.sh +++ b/install.sh @@ -12,9 +12,13 @@ set -o nounset apt update && apt upgrade -y && apt autoremove -y apt remove ubuntu-advantage-tools -y +apt install -y ca-certificates curl gnupg -curl -sL https://deb.nodesource.com/setup_18.x -o nodesource_setup.sh -apt install -y nodejs git unzip curl ufw fail2ban cockpit software-properties-common +mkdir -p /etc/apt/keyrings +curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg +echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list + +apt update && apt install -y nodejs git unzip curl ca-certificates gnupg ufw fail2ban cockpit software-properties-common systemctl start cockpit