-
-
Save DDaems/9ee048d53ec195d09fe9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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