better install scripts for daemons with go 1.11

This commit is contained in:
Jakob Schrettenbrunner 2019-02-02 15:02:43 +01:00
parent a5b7bc3ce0
commit 209be8356e
2 changed files with 5 additions and 1 deletions

View File

@ -6,6 +6,7 @@ echo "Provisioning development environment for Pterodactyl Panel."
echo "Add repositories"
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - > /dev/null
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" > /dev/null
add-apt-repository -y ppa:longsleep/golang-backports > /dev/null
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash - > /dev/null
curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list

View File

@ -4,9 +4,12 @@ export DEBIAN_FRONTEND=noninteractive
chown -R vagrant:vagrant /home/vagrant
echo "Install docker, go and some dependencies"
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - > /dev/null
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" > /dev/null
add-apt-repository -y ppa:longsleep/golang-backports > /dev/null
apt-get -qq update
apt-get -qq -o=Dpkg::Use-Pty=0 upgrade
apt-get -qq -o=Dpkg::Use-Pty=0 install -y golang-go docker.io mercurial tar unzip make gcc g++ python
apt-get -qq -o=Dpkg::Use-Pty=0 install -y golang-go docker-ce mercurial tar unzip make gcc g++ python
usermod -aG docker vagrant