added unattended installs, and bumped golang ver
This commit is contained in:
@ -31,23 +31,7 @@ else
|
||||
CURL_NOT_EXIST=0
|
||||
fi
|
||||
apt remove golang -y
|
||||
rm -rf /tmp/go/
|
||||
mkdir /tmp/go/
|
||||
cd /tmp/go/
|
||||
VER="1.20.7"
|
||||
if [ -n "$(uname -a | grep x86_64)" ]; then
|
||||
curl -fsSL -o "/tmp/go/go"$VER".linux-amd64.tar.gz" "https://go.dev/dl/go"$VER".linux-amd64.tar.gz"
|
||||
fi
|
||||
if [ -n "$(uname -a | grep armv6l)" ]; then
|
||||
curl -fsSL -o "/tmp/go/go"$VER".linux-armv6l.tar.gz" "https://go.dev/dl/go"$VER".linux-armv6l.tar.gz"
|
||||
fi
|
||||
if [ -n "$(uname -a | grep i386)" ]; then
|
||||
curl -fsSL -o "/tmp/go/go"$VER".linux-386.tar.gz" "https://go.dev/dl/go"$VER".linux-386.tar.gz"
|
||||
fi
|
||||
rm -rf /usr/local/go && tar -C /usr/local -xzf *.tar.gz
|
||||
chmod +x /usr/local/go/bin/go
|
||||
export PATH=$PATH:/usr/local/go/bin
|
||||
cd ~
|
||||
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
|
||||
|
Reference in New Issue
Block a user