Skip to content

Instantly share code, notes, and snippets.

@DDaems
Forked from jniltinho/install_gogs_ubuntu.sh
Last active August 29, 2015 14:26
Show Gist options
  • Save DDaems/9ee048d53ec195d09fe9 to your computer and use it in GitHub Desktop.
Save DDaems/9ee048d53ec195d09fe9 to your computer and use it in GitHub Desktop.

Revisions

  1. @jniltinho jniltinho revised this gist Aug 7, 2015. 1 changed file with 21 additions and 9 deletions.
    30 changes: 21 additions & 9 deletions install_gogs_ubuntu.sh
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,19 @@
    #!/bin/bash
    ## Install Gogs 0.6.1 on Ubuntu 14.04 LTS 64Bits
    ## Install Gogs 0.6.3 on Ubuntu 14.04 LTS 64Bits
    ## Author: Nilton OS -- www.linuxpro.com.br
    ## Version: 0.2

    ### Execute os passos abaixo como root (sudo su)
    echo 'install_gogs_ubuntu.sh'
    echo 'Support Ubuntu/Debian'
    echo 'Installs Gogs 0.6.3'
    echo 'Requires Ubuntu 14.04+, Debian 7+'


    # Check if user has root privileges
    if [[ $EUID -ne 0 ]]; then
    echo "You must run the script as root or using sudo"
    exit 1
    fi

    apt-get update
    apt-get install -y unzip
    @@ -10,9 +22,9 @@ 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
    wget http://gogs.dn.qbox.me/gogs_v0.6.3_linux_amd64.zip
    unzip gogs_v0.6.3_linux_amd64.zip
    rm -f gogs_v0.6.3_linux_amd64.zip
    cd gogs
    mysql -p < etc/mysql.sql

    @@ -22,15 +34,15 @@ chmod +x /etc/init.d/gogs

    /etc/init.d/gogs start

    ## Colocando a aplicacao para Subir no Boot
    ## Gogs enable on 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
    ## Gogs Server App run on port 3000
    ## Access http://ip_your_server:3000 to continue the installation


    ## 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
    ## https://github.com/gogits/gogs/blob/master/conf/app.ini
  2. @jniltinho jniltinho revised this gist Jul 15, 2015. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion install_gogs_ubuntu.sh
    Original file line number Diff line number Diff line change
    @@ -32,4 +32,5 @@ update-rc.d gogs defaults
    ## Links
    ## http://gogs.io/docs/installation/install_from_source.html
    ## http://gogs.io/
    ## https://github.com/gogits/gogs/
    ## https://github.com/gogits/gogs/
    ## https://github.com/gogits/gogs/blob/master/conf/app.ini
  3. @jniltinho jniltinho revised this gist Jul 15, 2015. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion install_gogs_ubuntu.sh
    Original file line number Diff line number Diff line change
    @@ -30,4 +30,6 @@ update-rc.d gogs defaults


    ## Links
    #http://gogs.io/docs/installation/install_from_source.html
    ## http://gogs.io/docs/installation/install_from_source.html
    ## http://gogs.io/
    ## https://github.com/gogits/gogs/
  4. @jniltinho jniltinho revised this gist Jul 15, 2015. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions install_gogs_ubuntu.sh
    Original file line number Diff line number Diff line change
    @@ -22,6 +22,9 @@ 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

  5. @jniltinho jniltinho revised this gist Jul 15, 2015. 1 changed file with 10 additions and 5 deletions.
    15 changes: 10 additions & 5 deletions install_gogs_ubuntu.sh
    Original file line number Diff line number Diff line change
    @@ -8,17 +8,22 @@ apt-get install -y unzip
    apt-get install -y wget git-core postfix mysql-client mysql-server
    adduser --disabled-login --gecos 'Gogs' git

    sudo su - git
    su - git
    cd
    mkdir local
    cd local
    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

    ./gogs web

    exit
    cp /home/git/gogs/scripts/init/debian/gogs /etc/init.d/
    chmod +x /etc/init.d/gogs

    /etc/init.d/gogs start

    ## Pronto o Servidor do Gogs ja esta rodando na porta 3000
    ## Acesse http://ip_do_servidor:3000 para continuar a instalacao


    ## Links
  6. @jniltinho jniltinho revised this gist Jul 15, 2015. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions install_gogs_ubuntu.sh
    Original file line number Diff line number Diff line change
    @@ -1,11 +1,11 @@
    #!/bin/bash
    ## Install Gogs on Ubuntu 14.04 LTS 64Bits
    ## 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
    apt-get install -y wget git-core postfix mysql-client mysql-server
    adduser --disabled-login --gecos 'Gogs' git

    sudo su - git
  7. @jniltinho jniltinho revised this gist Jul 15, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion install_gogs_ubuntu.sh
    Original file line number Diff line number Diff line change
    @@ -9,7 +9,7 @@ apt-get install -y wget git-core
    adduser --disabled-login --gecos 'Gogs' git

    sudo su - git
    cd ~
    cd
    mkdir local
    cd local
    wget http://gogs.dn.qbox.me/gogs_v0.6.1_linux_amd64.zip
  8. @jniltinho jniltinho revised this gist Jul 15, 2015. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions install_gogs_ubuntu.sh
    Original file line number Diff line number Diff line change
    @@ -15,6 +15,8 @@ cd local
    wget http://gogs.dn.qbox.me/gogs_v0.6.1_linux_amd64.zip
    unzip gogs_v0.6.1_linux_amd64.zip

    ./gogs web




  9. @jniltinho jniltinho revised this gist Jul 15, 2015. 1 changed file with 16 additions and 1 deletion.
    17 changes: 16 additions & 1 deletion install_gogs_ubuntu.sh
    Original file line number Diff line number Diff line change
    @@ -5,4 +5,19 @@

    apt-get update
    apt-get install -y unzip
    apt-get install -y wget git-core
    apt-get install -y wget git-core
    adduser --disabled-login --gecos 'Gogs' git

    sudo su - git
    cd ~
    mkdir local
    cd local
    wget http://gogs.dn.qbox.me/gogs_v0.6.1_linux_amd64.zip
    unzip gogs_v0.6.1_linux_amd64.zip





    ## Links
    #http://gogs.io/docs/installation/install_from_source.html
  10. @jniltinho jniltinho revised this gist Jul 15, 2015. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion install_gogs_ubuntu.sh
    Original file line number Diff line number Diff line change
    @@ -4,4 +4,5 @@
    ### Execute os passos abaixo como root (sudo su)

    apt-get update
    apt-get install unzip
    apt-get install -y unzip
    apt-get install -y wget git-core
  11. @jniltinho jniltinho created this gist Jul 15, 2015.
    7 changes: 7 additions & 0 deletions install_gogs_ubuntu.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    #!/bin/bash
    ## Install Gogs on Ubuntu 14.04 LTS 64Bits

    ### Execute os passos abaixo como root (sudo su)

    apt-get update
    apt-get install unzip