#!/bin/bash
#
# HOWTOish set up gocd agent

exit 0

echo "deb https://download.gocd.org /" | sudo tee /etc/apt/sources.list.d/gocd.list
curl https://download.gocd.org/GOCD-GPG-KEY.asc | sudo apt-key add -
sudo apt update
sudo apt install go-agent

vim /usr/share/go-agent/wrapper-config/wrapper-properties.conf
# Set:
wrapper.app.parameter.101=https://localhost:8154/go
# To:
wrapper.app.parameter.101=https://gocd.forksand.com/go

# Then
systemctl start go-agent.service

