From e21ccf076918180fafb6c210fa75c9012c60266b Mon Sep 17 00:00:00 2001 From: felix Date: Wed, 26 Mar 2025 20:27:37 +0100 Subject: [PATCH] =?UTF-8?q?Aenderungen=20von=20Hauptversion=20=C3=BCbernom?= =?UTF-8?q?men?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rmmagent-linux.sh | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/rmmagent-linux.sh b/rmmagent-linux.sh index dfe3f55..3345211 100644 --- a/rmmagent-linux.sh +++ b/rmmagent-linux.sh @@ -1,10 +1,4 @@ #!/bin/bash -check_zip=$(which unzip 2> /dev/null) -if [[ $check_zip == "" || $check_zip =~ .*"no unzip".* ]]; then - echo "unzip could not be found. Please install unzip." - exit 0 -fi - if [[ $1 == "" ]]; then echo "First argument is empty !" echo "Type help for more information" @@ -30,7 +24,7 @@ if [[ $1 == "help" ]]; then echo "" echo "List of UNINSTALL argument (no argument name):" echo "Arg 1: 'uninstall'" - echo "Arg 2: Mesh agent FQDN (i.e. mesh.domain.com)" + echo "Arg 2: Mesh agent FQDN (i.e. mesh.example.com)" echo "Arg 3: Mesh agent id (The id needs to have single quotes around it)" echo "" exit 0 @@ -127,7 +121,7 @@ rmm_agent_type=$8 mesh_fqdn=$2 mesh_id=$3 ## Setting Go verison to be installed -go_version="1.21.5" +go_version="1.21.6" go_url_amd64="https://go.dev/dl/go$go_version.linux-amd64.tar.gz" go_url_x86="https://go.dev/dl/go$go_version.linux-386.tar.gz" @@ -198,9 +192,9 @@ function go_install() { function agent_compile() { ## Compiling and installing tactical agent from github echo "Agent Compile begin" - wget -O /tmp/rmmagent.zip "https://github.com/amidaware/rmmagent/archive/refs/heads/master.zip" - unzip /tmp/rmmagent -d /tmp/ - rm /tmp/rmmagent.zip + wget -O /tmp/rmmagent.tar.gz "https://github.com/amidaware/rmmagent/archive/refs/heads/master.tar.gz" + tar -xf /tmp/rmmagent.tar.gz -C /tmp/ + rm /tmp/rmmagent.tar.gz cd /tmp/rmmagent-master case $system in amd64) @@ -325,4 +319,4 @@ uninstall) echo "Tactical Agent Uninstall is done" echo "You may need to manually remove the agents orphaned connections on TacticalRMM and MeshCentral" exit 0;; -esac +esac \ No newline at end of file