Aenderungen von Hauptversion übernommen
This commit is contained in:
parent
d04ae60351
commit
e21ccf0769
|
|
@ -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
|
||||
Loading…
Reference in New Issue