added unattended installs, and bumped golang ver
This commit is contained in:
26
scripts/unattended/hockeypuckinstall.sh
Normal file
26
scripts/unattended/hockeypuckinstall.sh
Normal file
@ -0,0 +1,26 @@
|
||||
#!/usr/bin/env bash
|
||||
trap 'exit 130' INT
|
||||
if [ ! -x /usr/bin/curl ] ; then
|
||||
CURL_NOT_EXIST=1
|
||||
apt install -y curl
|
||||
else
|
||||
CURL_NOT_EXIST=0
|
||||
fi
|
||||
sudo apt-get install bzr git mercurial -y
|
||||
# Check if curl is installed
|
||||
if [ ! -x /usr/bin/curl ] ; then
|
||||
CURL_NOT_EXIST=1
|
||||
apt install -y curl
|
||||
else
|
||||
CURL_NOT_EXIST=0
|
||||
fi
|
||||
apt remove golang -y
|
||||
wget -O goinstall.sh https://sop.wtf/sh/u/goinstall && bash goinstall.sh
|
||||
git clone https://github.com/hockeypuck/packaging /var/lib/hockeypuck
|
||||
cd packaging
|
||||
./prepare.bash
|
||||
export GOPATH=$(pwd)
|
||||
go install github.com/hockeypuck/server/cmd/hockeypuck
|
||||
go install github.com/hockeypuck/server/cmd/hockeypuck-load
|
||||
go install github.com/hockeypuck/server/cmd/hockeypuck-pbuild
|
||||
bash /var/lib/hockeypuck -config /var/lib/hockeypuck/hockeypuck.conf
|
Reference in New Issue
Block a user