Skip to content

Instantly share code, notes, and snippets.

@codedecay
Forked from jniltinho/install_gogs_ubuntu.sh
Last active August 29, 2015 14:27
Show Gist options
  • Select an option

  • Save codedecay/35a4d7435f1c8d48dd06 to your computer and use it in GitHub Desktop.

Select an option

Save codedecay/35a4d7435f1c8d48dd06 to your computer and use it in GitHub Desktop.
#!/bin/bash
## Install Gogs 0.6.1 on Ubuntu 14.04 LTS 64Bits
### Execute os passos abaixo como root (sudo su)
apt-get update
apt-get install -y unzip
apt-get install -y wget git-core postfix mysql-client mysql-server
adduser --disabled-login --gecos 'Gogs' git
su - git
cd
wget http://gogs.dn.qbox.me/gogs_v0.6.1_linux_amd64.zip
unzip gogs_v0.6.1_linux_amd64.zip
rm -f gogs_v0.6.1_linux_amd64.zip
cd gogs
mysql -p < etc/mysql.sql
exit
cp /home/git/gogs/scripts/init/debian/gogs /etc/init.d/
chmod +x /etc/init.d/gogs
/etc/init.d/gogs start
## Colocando a aplicacao para Subir no Boot
update-rc.d gogs defaults
## Pronto o Servidor do Gogs ja esta rodando na porta 3000
## Acesse http://ip_do_servidor:3000 para continuar a instalacao
## Links
## http://gogs.io/docs/installation/install_from_source.html
## http://gogs.io/
## https://github.com/gogits/gogs/
## https://github.com/gogits/gogs/blob/master/conf/app.ini
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment