inital commit
This commit is contained in:
17
Agent/installAgent.sh
Normal file
17
Agent/installAgent.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
##Build of a release tag
|
||||
RelVer=stable
|
||||
##Build of a master branch, but config is vaidated
|
||||
#RelVer=latest_Tested
|
||||
##Build of a master branch
|
||||
#RelVer=latest
|
||||
|
||||
SERVER_ADDRESS=<unset>
|
||||
TENANT_ID=<unset>
|
||||
|
||||
mkdir -p /opt/ShellHubAgent
|
||||
wget https://git.bprieshof.nl/ci/Releases/ShellHub/"$RelVer"/BinAgent/ShellHubAgent-amd64 -O /opt/ShellHubAgent/ShellHubAgent
|
||||
wget https://git.bprieshof.nl/Tools/ShellHubNative/raw/branch/master/Agent/ShellHubAgent.service -O /etc/systemd/system/ShellHubAgent.service
|
||||
chmod +x /opt/ShellHub/ShellHubAgent
|
||||
sed -i -e 's/SERVER_TENID/'$TENANT_ID'/g' -e 's/SERVER_ADDR/'$SERVER_ADDRESS'/g' /etc/systemd/system/ShellHubSSH.service
|
||||
systemctl daemon-reload
|
||||
systemctl enable --now ShellHubAgent
|
||||
Reference in New Issue
Block a user