Aenderungen von Hauptversion übernommen
This commit is contained in:
parent
d04ae60351
commit
e21ccf0769
|
|
@ -1,10 +1,4 @@
|
||||||
#!/bin/bash
|
#!/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
|
if [[ $1 == "" ]]; then
|
||||||
echo "First argument is empty !"
|
echo "First argument is empty !"
|
||||||
echo "Type help for more information"
|
echo "Type help for more information"
|
||||||
|
|
@ -30,7 +24,7 @@ if [[ $1 == "help" ]]; then
|
||||||
echo ""
|
echo ""
|
||||||
echo "List of UNINSTALL argument (no argument name):"
|
echo "List of UNINSTALL argument (no argument name):"
|
||||||
echo "Arg 1: 'uninstall'"
|
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 "Arg 3: Mesh agent id (The id needs to have single quotes around it)"
|
||||||
echo ""
|
echo ""
|
||||||
exit 0
|
exit 0
|
||||||
|
|
@ -127,7 +121,7 @@ rmm_agent_type=$8
|
||||||
mesh_fqdn=$2
|
mesh_fqdn=$2
|
||||||
mesh_id=$3
|
mesh_id=$3
|
||||||
## Setting Go verison to be installed
|
## 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_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"
|
go_url_x86="https://go.dev/dl/go$go_version.linux-386.tar.gz"
|
||||||
|
|
@ -198,9 +192,9 @@ function go_install() {
|
||||||
function agent_compile() {
|
function agent_compile() {
|
||||||
## Compiling and installing tactical agent from github
|
## Compiling and installing tactical agent from github
|
||||||
echo "Agent Compile begin"
|
echo "Agent Compile begin"
|
||||||
wget -O /tmp/rmmagent.zip "https://github.com/amidaware/rmmagent/archive/refs/heads/master.zip"
|
wget -O /tmp/rmmagent.tar.gz "https://github.com/amidaware/rmmagent/archive/refs/heads/master.tar.gz"
|
||||||
unzip /tmp/rmmagent -d /tmp/
|
tar -xf /tmp/rmmagent.tar.gz -C /tmp/
|
||||||
rm /tmp/rmmagent.zip
|
rm /tmp/rmmagent.tar.gz
|
||||||
cd /tmp/rmmagent-master
|
cd /tmp/rmmagent-master
|
||||||
case $system in
|
case $system in
|
||||||
amd64)
|
amd64)
|
||||||
|
|
@ -325,4 +319,4 @@ uninstall)
|
||||||
echo "Tactical Agent Uninstall is done"
|
echo "Tactical Agent Uninstall is done"
|
||||||
echo "You may need to manually remove the agents orphaned connections on TacticalRMM and MeshCentral"
|
echo "You may need to manually remove the agents orphaned connections on TacticalRMM and MeshCentral"
|
||||||
exit 0;;
|
exit 0;;
|
||||||
esac
|
esac
|
||||||
Loading…
Reference in New Issue