18 lines
714 B
Bash
18 lines
714 B
Bash
##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
|