From 8a3ebf85d2668874768292ff2179c40de76c3904 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Tue, 29 May 2018 19:55:51 +0000 Subject: [PATCH 01/33] update version to 1.4.1 --- README.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2b1c03d..cc23218 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Installs [Gitea](https://gitea.io) (formerly gogs) as a systemd service -## Linux Install Script +# Linux Install Script You can download and run the installer script: @@ -11,6 +11,8 @@ wget -O install-gitea.bash https://git.coolaj86.com/coolaj86/gitea-installer.sh/ bash install-gitea.bash ``` +## Install Manually + Or manually install by reading these instructions and following along: ```bash @@ -22,7 +24,7 @@ sudo mkdir -p /opt/gitea/ /var/log/gitea sudo chown -R gitea:gitea /opt/gitea/ /var/log/gitea # Download and install gitea -sudo wget -O /opt/gitea/gitea https://dl.gitea.io/gitea/1.0.1/gitea-1.0.1-linux-amd64 +sudo wget -O /opt/gitea/gitea https://dl.gitea.io/gitea/1.4.1/gitea-1.4.1-linux-amd64 sudo chmod +x /opt/gitea/gitea # Download and install the gitea.service for systemd @@ -32,7 +34,7 @@ sudo wget -O /etc/systemd/system/gitea.service https://git.coolaj86.com/coolaj86 sudo systemctl restart gitea ``` -## Gitea Web Setup (post install) +# Gitea Web Setup (post install) Once you've gitea installed and running you must choose which database to use, certain gitea paths, an admin user, etc. @@ -74,6 +76,7 @@ You can find more information about customization and templates in the docs and * https://docs.gitea.io/en-us/customizing-gitea/ * https://github.com/go-gitea/gitea/tree/master/templates/ + # Troubleshooting systemd See [Troubleshooting systemd](https://git.coolaj86.com/coolaj86/service-installer.sh/src/master/README.md#troubleshooting-systemd) \ No newline at end of file From 09617dc377d74a88aeaf64f089e626d978ecb3c8 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Tue, 29 May 2018 20:22:04 +0000 Subject: [PATCH 02/33] update to v1.4.1 --- install.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.bash b/install.bash index f21d676..1ff3103 100644 --- a/install.bash +++ b/install.bash @@ -1,6 +1,6 @@ #!/bin/bash -VER=1.4.0 +VER=1.4.1 # wget -O install-gitea.bash https://git.coolaj86.com/coolaj86/gitea-installer/raw/master/install.bash; bash install-gitea.bash # or From 6728663a8bc3cc9b9285b12d6a492f945fa24e6a Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Mon, 4 Jun 2018 20:03:40 +0000 Subject: [PATCH 03/33] update output --- install.bash | 29 +++++++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/install.bash b/install.bash index 1ff3103..1c103c4 100644 --- a/install.bash +++ b/install.bash @@ -32,12 +32,33 @@ sudo systemctl enable gitea # swapon /tmp.swap sudo systemctl restart gitea +set +e +my_ip=$(ifconfig | grep inet | grep Mask | grep -v ':127\\.0\\.0\\.1' | grep -v ':192\\.168' | grep -v ':10\\.' | head -n 1 | cut -f 2 -d ':' | cut -f 1 -d ' ') +my_ip=${my_ip:-localhost} +set -e + echo "" -echo "Please visit http://localhost:3000/ now to finish installing gitea" echo "" -echo "You may customize gitea" -echo " templates can be seen at https://github.com/go-gitea/gitea/tree/v$VER/templates" -echo " app.ini.sample can be seen at https://github.com/go-gitea/gitea/blob/v$VER/custom/conf/app.ini.sample" +echo "###########################" +echo "# Time to Configure #" +echo "###########################" +echo "" +echo "Just a few more steps to complete at the setup URL:" +echo "" +echo "\thttp://$my_ip:3000/" +echo "" +echo "Future changes can be made by editing the config file:" +echo "" +echo "\t/opt/gitea/custom/conf/app.ini" +echo "" +echo "" +echo "P.S. Would you like to customize Gitea?" +echo "" +echo "\tSee basic instructions at https://git.coolaj86.com/coolaj86/gitea-installer.sh/_edit/master/install.bash" +echo "" +echo "\tThe templates are at https://github.com/go-gitea/gitea/tree/v$VER/templates" +echo "\tSee a sample app.ini at https://github.com/go-gitea/gitea/blob/v$VER/custom/conf/app.ini.sample" +echo "" # sleep 5 # swapoff /tmp.swap From 902eaa71e2d11c0248e0713dce89c629f27ec1fd Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Mon, 4 Jun 2018 20:06:14 +0000 Subject: [PATCH 04/33] Make instructional output more readable --- install.bash | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/install.bash b/install.bash index 1c103c4..ebe9edb 100644 --- a/install.bash +++ b/install.bash @@ -54,10 +54,14 @@ echo "" echo "" echo "P.S. Would you like to customize Gitea?" echo "" -echo "\tSee basic instructions at https://git.coolaj86.com/coolaj86/gitea-installer.sh/_edit/master/install.bash" +echo "\tRead basic instructions:" +echo "\thttps://git.coolaj86.com/coolaj86/gitea-installer.sh/_edit/master/install.bash" echo "" -echo "\tThe templates are at https://github.com/go-gitea/gitea/tree/v$VER/templates" -echo "\tSee a sample app.ini at https://github.com/go-gitea/gitea/blob/v$VER/custom/conf/app.ini.sample" +echo "\tView current templates:" +echo "\thttps://github.com/go-gitea/gitea/tree/v$VER/templates" +echo "" +echo "\tSee a sample app.ini:" +echo "\thttps://github.com/go-gitea/gitea/blob/v$VER/custom/conf/app.ini.sample" echo "" # sleep 5 From 764458a74feffd8b53b48d1ad8cd80f2fba7d33e Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Mon, 4 Jun 2018 20:52:26 +0000 Subject: [PATCH 05/33] tabs -> spaces --- install.bash | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/install.bash b/install.bash index ebe9edb..f6ab6ee 100644 --- a/install.bash +++ b/install.bash @@ -45,23 +45,23 @@ echo "###########################" echo "" echo "Just a few more steps to complete at the setup URL:" echo "" -echo "\thttp://$my_ip:3000/" +echo " http://$my_ip:3000/" echo "" echo "Future changes can be made by editing the config file:" echo "" -echo "\t/opt/gitea/custom/conf/app.ini" +echo " /opt/gitea/custom/conf/app.ini" echo "" echo "" echo "P.S. Would you like to customize Gitea?" echo "" -echo "\tRead basic instructions:" -echo "\thttps://git.coolaj86.com/coolaj86/gitea-installer.sh/_edit/master/install.bash" +echo " Read basic instructions:" +echo " https://git.coolaj86.com/coolaj86/gitea-installer.sh/_edit/master/install.bash" echo "" -echo "\tView current templates:" -echo "\thttps://github.com/go-gitea/gitea/tree/v$VER/templates" +echo " View current templates:" +echo " https://github.com/go-gitea/gitea/tree/v$VER/templates" echo "" -echo "\tSee a sample app.ini:" -echo "\thttps://github.com/go-gitea/gitea/blob/v$VER/custom/conf/app.ini.sample" +echo " See a sample app.ini:" +echo " https://github.com/go-gitea/gitea/blob/v$VER/custom/conf/app.ini.sample" echo "" # sleep 5 From 7b0b4f819a7f129a2a886bdaf4e1fb50257c01de Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Mon, 4 Jun 2018 21:32:12 +0000 Subject: [PATCH 06/33] add screencast link --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index cc23218..220670b 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,11 @@ Installs [Gitea](https://gitea.io) (formerly gogs) as a systemd service +# Screencast +**How to install Gitea**, and migrate one of your Microsoft Github, repos in 5 minutes. + +a screencast of me installing gitea and migrating one of my github repos + # Linux Install Script You can download and run the installer script: From 7a457b6a3523d4265745817fa9899a019403f9fd Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Mon, 4 Jun 2018 21:32:38 +0000 Subject: [PATCH 07/33] open screencast in new window --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 220670b..be9a1e7 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ Installs [Gitea](https://gitea.io) (formerly gogs) as a systemd service # Screencast **How to install Gitea**, and migrate one of your Microsoft Github, repos in 5 minutes. -a screencast of me installing gitea and migrating one of my github repos +a screencast of me installing gitea and migrating one of my github repos # Linux Install Script From 22937eb9b781f9c066cc1fe7cd73371be23288b2 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Mon, 4 Jun 2018 21:33:03 +0000 Subject: [PATCH 08/33] Update 'README.md' --- README.md | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index be9a1e7..1d91851 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,6 @@ # Gitea Installer Installs [Gitea](https://gitea.io) (formerly gogs) as a systemd service - -# Screencast -**How to install Gitea**, and migrate one of your Microsoft Github, repos in 5 minutes. - -a screencast of me installing gitea and migrating one of my github repos - # Linux Install Script You can download and run the installer script: @@ -38,6 +32,10 @@ sudo wget -O /etc/systemd/system/gitea.service https://git.coolaj86.com/coolaj86 # Start gitea sudo systemctl restart gitea ``` +# Screencast +**How to install Gitea**, and migrate one of your Microsoft Github, repos in 5 minutes. + +a screencast of me installing gitea and migrating one of my github repos # Gitea Web Setup (post install) From d75ad1a205991cbded70481b8a3040c4ca66058d Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Mon, 4 Jun 2018 21:33:56 +0000 Subject: [PATCH 09/33] Update 'README.md' --- README.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 1d91851..7a474e1 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,13 @@ # Gitea Installer Installs [Gitea](https://gitea.io) (formerly gogs) as a systemd service + +## Screencast +**How to install Gitea**, and migrate one of your Microsoft Github, repos in 5 minutes. + +a screencast of me installing gitea and migrating one of my github repos + + # Linux Install Script You can download and run the installer script: @@ -32,10 +39,6 @@ sudo wget -O /etc/systemd/system/gitea.service https://git.coolaj86.com/coolaj86 # Start gitea sudo systemctl restart gitea ``` -# Screencast -**How to install Gitea**, and migrate one of your Microsoft Github, repos in 5 minutes. - -a screencast of me installing gitea and migrating one of my github repos # Gitea Web Setup (post install) From 99f7a27ea28e50e28b0f4fb6afa123d50d5c3385 Mon Sep 17 00:00:00 2001 From: Josh Mudge Date: Sat, 23 Jun 2018 21:44:29 -0600 Subject: [PATCH 10/33] Update and make ARMv7 version. --- install.bash | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install.bash b/install.bash index f6ab6ee..775438e 100644 --- a/install.bash +++ b/install.bash @@ -1,6 +1,6 @@ #!/bin/bash -VER=1.4.1 +VER=1.4.2 # wget -O install-gitea.bash https://git.coolaj86.com/coolaj86/gitea-installer/raw/master/install.bash; bash install-gitea.bash # or @@ -14,7 +14,7 @@ sudo mkdir -p /opt/gitea/ /var/log/gitea sudo chown -R gitea:gitea /opt/gitea/ /var/log/gitea # Download and install gitea -sudo wget -O "/opt/gitea/gitea-$VER" "https://dl.gitea.io/gitea/$VER/gitea-$VER-linux-amd64" +sudo wget -O "/opt/gitea/gitea-$VER" "https://dl.gitea.io/gitea/$VER/gitea-$VER-linux-arm-7" sudo chmod +x /opt/gitea/gitea-$VER rm -f /opt/gitea/gitea ln -sf gitea-$VER /opt/gitea/gitea @@ -66,4 +66,4 @@ echo "" # sleep 5 # swapoff /tmp.swap -# rm /tmp.swap \ No newline at end of file +# rm /tmp.swap From eb8dfc1af3181d26dd425fc26cdc4348805d3de6 Mon Sep 17 00:00:00 2001 From: Josh Mudge Date: Sat, 23 Jun 2018 21:57:23 -0600 Subject: [PATCH 11/33] Update to check for ARM or x86 and install the correct version. --- install.bash | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/install.bash b/install.bash index 775438e..89e073a 100644 --- a/install.bash +++ b/install.bash @@ -14,7 +14,17 @@ sudo mkdir -p /opt/gitea/ /var/log/gitea sudo chown -R gitea:gitea /opt/gitea/ /var/log/gitea # Download and install gitea -sudo wget -O "/opt/gitea/gitea-$VER" "https://dl.gitea.io/gitea/$VER/gitea-$VER-linux-arm-7" + + # Check if architecure is x86 and download Gitea +if [ -n "$(uname -a | grep x86_64)" ]; then + sudo wget -O "/opt/gitea/gitea-$VER" "https://dl.gitea.io/gitea/$VER/gitea-$VER-linux-arm-7" +fi + + # Check if architecure is ARMv7 and download Gitea +if [ -n "$(uname -a | grep armv7l)" ]; then + sudo wget -O "/opt/gitea/gitea-$VER" "https://dl.gitea.io/gitea/$VER/gitea-$VER-linux-arm-7" +fi + sudo chmod +x /opt/gitea/gitea-$VER rm -f /opt/gitea/gitea ln -sf gitea-$VER /opt/gitea/gitea From 6f2ca3d31249e0a48102e54696212d1a6361b25d Mon Sep 17 00:00:00 2001 From: Josh Mudge Date: Sat, 23 Jun 2018 22:02:45 -0600 Subject: [PATCH 12/33] Fix AMD install. --- install.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.bash b/install.bash index 89e073a..543a6d6 100644 --- a/install.bash +++ b/install.bash @@ -17,7 +17,7 @@ sudo chown -R gitea:gitea /opt/gitea/ /var/log/gitea # Check if architecure is x86 and download Gitea if [ -n "$(uname -a | grep x86_64)" ]; then - sudo wget -O "/opt/gitea/gitea-$VER" "https://dl.gitea.io/gitea/$VER/gitea-$VER-linux-arm-7" + sudo wget -O "/opt/gitea/gitea-$VER" "https://dl.gitea.io/gitea/$VER/gitea-$VER-linux-amd64" fi # Check if architecure is ARMv7 and download Gitea From 7cb52884fc74cda1b5580ef2fc12b3d206d6204c Mon Sep 17 00:00:00 2001 From: Josh Mudge Date: Sat, 23 Jun 2018 22:33:17 -0600 Subject: [PATCH 13/33] Add ARMv6 support --- install.bash | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/install.bash b/install.bash index 543a6d6..848ce4d 100644 --- a/install.bash +++ b/install.bash @@ -20,6 +20,11 @@ if [ -n "$(uname -a | grep x86_64)" ]; then sudo wget -O "/opt/gitea/gitea-$VER" "https://dl.gitea.io/gitea/$VER/gitea-$VER-linux-amd64" fi +# Check if architecure is ARMv6 and download Gitea +if [ -n "$(uname -a | grep armv6l)" ]; then +sudo wget -O "/opt/gitea/gitea-$VER" "https://dl.gitea.io/gitea/$VER/gitea-$VER-linux-arm-6" +fi + # Check if architecure is ARMv7 and download Gitea if [ -n "$(uname -a | grep armv7l)" ]; then sudo wget -O "/opt/gitea/gitea-$VER" "https://dl.gitea.io/gitea/$VER/gitea-$VER-linux-arm-7" From 735958f8f9809bd20e1d5ba5f0292ccebe1a76ad Mon Sep 17 00:00:00 2001 From: Josh Mudge Date: Sat, 23 Jun 2018 22:41:55 -0600 Subject: [PATCH 14/33] Add i386 support --- install.bash | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/install.bash b/install.bash index 848ce4d..745dd03 100644 --- a/install.bash +++ b/install.bash @@ -15,6 +15,11 @@ sudo chown -R gitea:gitea /opt/gitea/ /var/log/gitea # Download and install gitea + # Check if architecure is i386 and download Gitea +if [ -n "$(uname -a | grep i386)" ]; then + sudo wget -O "/opt/gitea/gitea-$VER" "https://dl.gitea.io/gitea/$VER/gitea-$VER-linux-386" +fi + # Check if architecure is x86 and download Gitea if [ -n "$(uname -a | grep x86_64)" ]; then sudo wget -O "/opt/gitea/gitea-$VER" "https://dl.gitea.io/gitea/$VER/gitea-$VER-linux-amd64" From f1aad8be596b071f39afaaf1c63106912b44ef00 Mon Sep 17 00:00:00 2001 From: Josh Mudge Date: Thu, 28 Jun 2018 16:40:39 +0000 Subject: [PATCH 15/33] Update 'README.md' --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7a474e1..7ba54d2 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ sudo adduser gitea --home /opt/gitea --disabled-password --gecos '' sudo mkdir -p /opt/gitea/ /var/log/gitea sudo chown -R gitea:gitea /opt/gitea/ /var/log/gitea -# Download and install gitea +# Download and install gitea. Replace "amd64" with "i386" for 32 bit x86 or "arm-7" for ARMv7 and "arm-6" for ARMv6. sudo wget -O /opt/gitea/gitea https://dl.gitea.io/gitea/1.4.1/gitea-1.4.1-linux-amd64 sudo chmod +x /opt/gitea/gitea From 8232bba3481f9de2ae1a133e0c4d5fad47864ede Mon Sep 17 00:00:00 2001 From: Josh Mudge Date: Thu, 28 Jun 2018 18:41:39 +0000 Subject: [PATCH 16/33] Update with easier install docs. --- README.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/README.md b/README.md index 7ba54d2..008ecb8 100644 --- a/README.md +++ b/README.md @@ -12,10 +12,7 @@ Installs [Gitea](https://gitea.io) (formerly gogs) as a systemd service You can download and run the installer script: -```bash -wget -O install-gitea.bash https://git.coolaj86.com/coolaj86/gitea-installer.sh/raw/master/install.bash -bash install-gitea.bash -``` +`curl -fsSL https://git.coolaj86.com/coolaj86/gitea-installer.sh/raw/branch/master/install.bash | bash` ## Install Manually From 91f4ecd3f8f7eb0d5ccdfcca4c951af0d796d839 Mon Sep 17 00:00:00 2001 From: Josh Mudge Date: Thu, 28 Jun 2018 14:41:50 -0600 Subject: [PATCH 17/33] Automagically get latest version and convert to curl links. --- install.bash | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/install.bash b/install.bash index 745dd03..a4dbe23 100644 --- a/install.bash +++ b/install.bash @@ -1,6 +1,10 @@ #!/bin/bash -VER=1.4.2 +# Most of code credit for determining version is here: https://gist.github.com/lukechilds/a83e1d7127b78fef38c2914c4ececc3c +VER=$(curl --silent "https://api.github.com/repos/go-gitea/gitea/releases/latest" | # Get latest release from GitHub api + grep '"tag_name":' | # Get tag line + sed -E 's/.*"([^"]+)".*/\1/' | # Pluck JSON value + sed 's|[v,]||g' ) # Remove v # wget -O install-gitea.bash https://git.coolaj86.com/coolaj86/gitea-installer/raw/master/install.bash; bash install-gitea.bash # or @@ -17,22 +21,22 @@ sudo chown -R gitea:gitea /opt/gitea/ /var/log/gitea # Check if architecure is i386 and download Gitea if [ -n "$(uname -a | grep i386)" ]; then - sudo wget -O "/opt/gitea/gitea-$VER" "https://dl.gitea.io/gitea/$VER/gitea-$VER-linux-386" + sudo curl -o "/opt/gitea/gitea-$VER" "https://dl.gitea.io/gitea/$VER/gitea-$VER-linux-386" fi # Check if architecure is x86 and download Gitea if [ -n "$(uname -a | grep x86_64)" ]; then - sudo wget -O "/opt/gitea/gitea-$VER" "https://dl.gitea.io/gitea/$VER/gitea-$VER-linux-amd64" + sudo curl -o "/opt/gitea/gitea-$VER" "https://dl.gitea.io/gitea/$VER/gitea-$VER-linux-amd64" fi # Check if architecure is ARMv6 and download Gitea if [ -n "$(uname -a | grep armv6l)" ]; then -sudo wget -O "/opt/gitea/gitea-$VER" "https://dl.gitea.io/gitea/$VER/gitea-$VER-linux-arm-6" +sudo curl -o "/opt/gitea/gitea-$VER" "https://dl.gitea.io/gitea/$VER/gitea-$VER-linux-arm-6" fi # Check if architecure is ARMv7 and download Gitea if [ -n "$(uname -a | grep armv7l)" ]; then - sudo wget -O "/opt/gitea/gitea-$VER" "https://dl.gitea.io/gitea/$VER/gitea-$VER-linux-arm-7" + sudo curl -o "/opt/gitea/gitea-$VER" "https://dl.gitea.io/gitea/$VER/gitea-$VER-linux-arm-7" fi sudo chmod +x /opt/gitea/gitea-$VER @@ -40,7 +44,7 @@ rm -f /opt/gitea/gitea ln -sf gitea-$VER /opt/gitea/gitea # Download and install the gitea.service for systemd -sudo wget -O /etc/systemd/system/gitea.service https://git.coolaj86.com/coolaj86/gitea-installer.sh/raw/master/dist/etc/systemd/system/gitea.service +sudo curl -o /etc/systemd/system/gitea.service https://git.coolaj86.com/coolaj86/gitea-installer.sh/raw/master/dist/etc/systemd/system/gitea.service # Start gitea sudo systemctl enable gitea From 20fb4b7dfef5cdef6408168b47a54fbbf82f8f6f Mon Sep 17 00:00:00 2001 From: Josh Mudge Date: Thu, 28 Jun 2018 15:02:19 -0600 Subject: [PATCH 18/33] Add option to specify the version manually. Update docs. --- README.md | 4 +++- install.bash | 25 ++++++++++++++++++++++--- 2 files changed, 25 insertions(+), 4 deletions(-) mode change 100644 => 100755 install.bash diff --git a/README.md b/README.md index 008ecb8..77e1b32 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,8 @@ You can download and run the installer script: `curl -fsSL https://git.coolaj86.com/coolaj86/gitea-installer.sh/raw/branch/master/install.bash | bash` +You can pick a specific version to install. For example, if you were nostalgic for 1.2.0, you could run `curl -fsSL https://git.coolaj86.com/coolaj86/gitea-installer.sh/raw/branch/master/install.bash | bash -s version 1.2.0` + ## Install Manually Or manually install by reading these instructions and following along: @@ -82,4 +84,4 @@ You can find more information about customization and templates in the docs and # Troubleshooting systemd -See [Troubleshooting systemd](https://git.coolaj86.com/coolaj86/service-installer.sh/src/master/README.md#troubleshooting-systemd) \ No newline at end of file +See [Troubleshooting systemd](https://git.coolaj86.com/coolaj86/service-installer.sh/src/master/README.md#troubleshooting-systemd) diff --git a/install.bash b/install.bash old mode 100644 new mode 100755 index a4dbe23..4b1c0c1 --- a/install.bash +++ b/install.bash @@ -6,9 +6,28 @@ VER=$(curl --silent "https://api.github.com/repos/go-gitea/gitea/releases/latest sed -E 's/.*"([^"]+)".*/\1/' | # Pluck JSON value sed 's|[v,]||g' ) # Remove v -# wget -O install-gitea.bash https://git.coolaj86.com/coolaj86/gitea-installer/raw/master/install.bash; bash install-gitea.bash -# or -# wget -O - https://git.coolaj86.com/coolaj86/gitea-installer/raw/master/install.bash | bash +while [[ $# -gt 0 ]] +do + key="$1" + + case $key in + -v|version) + VER="$2" + shift # past argument + ;; + *) + # unknown option + if test -z "${unknown}" + then + unknown=$1 + else + echo "Unknown Option" + exit 1 + fi + ;; + esac + shift # past argument or value +done # Create a 'gitea' user and group with the home /opt/gitea, no password (because it's a system user) and no GECOS sudo adduser gitea --home /opt/gitea --disabled-password --gecos '' From f421b83487e68f0ca23973d51d2653265c0c40bc Mon Sep 17 00:00:00 2001 From: Josh Mudge Date: Thu, 28 Jun 2018 15:03:54 -0600 Subject: [PATCH 19/33] Update README formatting. --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 77e1b32..25e903b 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,9 @@ You can download and run the installer script: `curl -fsSL https://git.coolaj86.com/coolaj86/gitea-installer.sh/raw/branch/master/install.bash | bash` -You can pick a specific version to install. For example, if you were nostalgic for 1.2.0, you could run `curl -fsSL https://git.coolaj86.com/coolaj86/gitea-installer.sh/raw/branch/master/install.bash | bash -s version 1.2.0` +You can pick a specific version to install. For example, if you were nostalgic for 1.2.0, you could run: + +`curl -fsSL https://git.coolaj86.com/coolaj86/gitea-installer.sh/raw/branch/master/install.bash | bash -s version 1.2.0` ## Install Manually From fb0d10741620e8b23d2e1298ef83c01cb6c1a3ae Mon Sep 17 00:00:00 2001 From: Josh Mudge Date: Thu, 28 Jun 2018 15:15:06 -0600 Subject: [PATCH 20/33] Fix systemd service. --- install.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.bash b/install.bash index 4b1c0c1..22eca01 100755 --- a/install.bash +++ b/install.bash @@ -63,7 +63,7 @@ rm -f /opt/gitea/gitea ln -sf gitea-$VER /opt/gitea/gitea # Download and install the gitea.service for systemd -sudo curl -o /etc/systemd/system/gitea.service https://git.coolaj86.com/coolaj86/gitea-installer.sh/raw/master/dist/etc/systemd/system/gitea.service +sudo curl -o /etc/systemd/system/gitea.service https://git.coolaj86.com/coolaj86/gitea-installer.sh/raw/branch/master/dist/etc/systemd/system/gitea.service # Start gitea sudo systemctl enable gitea From 7806ec977346b9f821e61af8bbf200cd158b7937 Mon Sep 17 00:00:00 2001 From: Josh Mudge Date: Thu, 28 Jun 2018 15:16:37 -0600 Subject: [PATCH 21/33] Make curl more robust. --- install.bash | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/install.bash b/install.bash index 22eca01..a52a94f 100755 --- a/install.bash +++ b/install.bash @@ -40,22 +40,22 @@ sudo chown -R gitea:gitea /opt/gitea/ /var/log/gitea # Check if architecure is i386 and download Gitea if [ -n "$(uname -a | grep i386)" ]; then - sudo curl -o "/opt/gitea/gitea-$VER" "https://dl.gitea.io/gitea/$VER/gitea-$VER-linux-386" + sudo curl -ofsSL "/opt/gitea/gitea-$VER" "https://dl.gitea.io/gitea/$VER/gitea-$VER-linux-386" fi # Check if architecure is x86 and download Gitea if [ -n "$(uname -a | grep x86_64)" ]; then - sudo curl -o "/opt/gitea/gitea-$VER" "https://dl.gitea.io/gitea/$VER/gitea-$VER-linux-amd64" + sudo curl -ofsSL "/opt/gitea/gitea-$VER" "https://dl.gitea.io/gitea/$VER/gitea-$VER-linux-amd64" fi # Check if architecure is ARMv6 and download Gitea if [ -n "$(uname -a | grep armv6l)" ]; then -sudo curl -o "/opt/gitea/gitea-$VER" "https://dl.gitea.io/gitea/$VER/gitea-$VER-linux-arm-6" +sudo curl -ofsSL "/opt/gitea/gitea-$VER" "https://dl.gitea.io/gitea/$VER/gitea-$VER-linux-arm-6" fi # Check if architecure is ARMv7 and download Gitea if [ -n "$(uname -a | grep armv7l)" ]; then - sudo curl -o "/opt/gitea/gitea-$VER" "https://dl.gitea.io/gitea/$VER/gitea-$VER-linux-arm-7" + sudo curl -ofsSL "/opt/gitea/gitea-$VER" "https://dl.gitea.io/gitea/$VER/gitea-$VER-linux-arm-7" fi sudo chmod +x /opt/gitea/gitea-$VER @@ -63,7 +63,7 @@ rm -f /opt/gitea/gitea ln -sf gitea-$VER /opt/gitea/gitea # Download and install the gitea.service for systemd -sudo curl -o /etc/systemd/system/gitea.service https://git.coolaj86.com/coolaj86/gitea-installer.sh/raw/branch/master/dist/etc/systemd/system/gitea.service +sudo curl -ofsSL /etc/systemd/system/gitea.service https://git.coolaj86.com/coolaj86/gitea-installer.sh/raw/branch/master/dist/etc/systemd/system/gitea.service # Start gitea sudo systemctl enable gitea From c5d75c101628acc56f3c24e1d80fd1425bf7b2bc Mon Sep 17 00:00:00 2001 From: Josh Mudge Date: Thu, 28 Jun 2018 15:29:49 -0600 Subject: [PATCH 22/33] Fix curl output issue. --- install.bash | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/install.bash b/install.bash index a52a94f..66d7e76 100755 --- a/install.bash +++ b/install.bash @@ -39,23 +39,23 @@ sudo chown -R gitea:gitea /opt/gitea/ /var/log/gitea # Download and install gitea # Check if architecure is i386 and download Gitea + sudo curl -fsSL -o "/opt/gitea/gitea-$VER" "https://dl.gitea.io/gitea/$VER/gitea-$VER-linux-386" if [ -n "$(uname -a | grep i386)" ]; then - sudo curl -ofsSL "/opt/gitea/gitea-$VER" "https://dl.gitea.io/gitea/$VER/gitea-$VER-linux-386" fi # Check if architecure is x86 and download Gitea if [ -n "$(uname -a | grep x86_64)" ]; then - sudo curl -ofsSL "/opt/gitea/gitea-$VER" "https://dl.gitea.io/gitea/$VER/gitea-$VER-linux-amd64" + sudo curl -fsSL -o "/opt/gitea/gitea-$VER" "https://dl.gitea.io/gitea/$VER/gitea-$VER-linux-amd64" fi # Check if architecure is ARMv6 and download Gitea if [ -n "$(uname -a | grep armv6l)" ]; then -sudo curl -ofsSL "/opt/gitea/gitea-$VER" "https://dl.gitea.io/gitea/$VER/gitea-$VER-linux-arm-6" +sudo curl -fsSL -o "/opt/gitea/gitea-$VER" "https://dl.gitea.io/gitea/$VER/gitea-$VER-linux-arm-6" fi # Check if architecure is ARMv7 and download Gitea if [ -n "$(uname -a | grep armv7l)" ]; then - sudo curl -ofsSL "/opt/gitea/gitea-$VER" "https://dl.gitea.io/gitea/$VER/gitea-$VER-linux-arm-7" + sudo curl -fsSL -o "/opt/gitea/gitea-$VER" "https://dl.gitea.io/gitea/$VER/gitea-$VER-linux-arm-7" fi sudo chmod +x /opt/gitea/gitea-$VER @@ -63,7 +63,7 @@ rm -f /opt/gitea/gitea ln -sf gitea-$VER /opt/gitea/gitea # Download and install the gitea.service for systemd -sudo curl -ofsSL /etc/systemd/system/gitea.service https://git.coolaj86.com/coolaj86/gitea-installer.sh/raw/branch/master/dist/etc/systemd/system/gitea.service +sudo curl -fsSL -o /etc/systemd/system/gitea.service https://git.coolaj86.com/coolaj86/gitea-installer.sh/raw/branch/master/dist/etc/systemd/system/gitea.service # Start gitea sudo systemctl enable gitea From c1a0669e6e79685e290a5a2841ada4fac6874c1e Mon Sep 17 00:00:00 2001 From: Josh Mudge Date: Thu, 28 Jun 2018 15:31:03 -0600 Subject: [PATCH 23/33] Fix typo --- install.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.bash b/install.bash index 66d7e76..affbcf8 100755 --- a/install.bash +++ b/install.bash @@ -39,8 +39,8 @@ sudo chown -R gitea:gitea /opt/gitea/ /var/log/gitea # Download and install gitea # Check if architecure is i386 and download Gitea - sudo curl -fsSL -o "/opt/gitea/gitea-$VER" "https://dl.gitea.io/gitea/$VER/gitea-$VER-linux-386" if [ -n "$(uname -a | grep i386)" ]; then + sudo curl -fsSL -o "/opt/gitea/gitea-$VER" "https://dl.gitea.io/gitea/$VER/gitea-$VER-linux-386" fi # Check if architecure is x86 and download Gitea From 03bd5b50111a019259fc2de0397fc2cc457fe8f6 Mon Sep 17 00:00:00 2001 From: Josh Mudge Date: Thu, 28 Jun 2018 15:33:49 -0600 Subject: [PATCH 24/33] Fix permissions issue. --- install.bash | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/install.bash b/install.bash index affbcf8..a3d6637 100755 --- a/install.bash +++ b/install.bash @@ -34,7 +34,6 @@ sudo adduser gitea --home /opt/gitea --disabled-password --gecos '' # Make some other potentially useful directories for that user/group sudo mkdir -p /opt/gitea/ /var/log/gitea -sudo chown -R gitea:gitea /opt/gitea/ /var/log/gitea # Download and install gitea @@ -58,9 +57,14 @@ if [ -n "$(uname -a | grep armv7l)" ]; then sudo curl -fsSL -o "/opt/gitea/gitea-$VER" "https://dl.gitea.io/gitea/$VER/gitea-$VER-linux-arm-7" fi +# Setup Gitea symlink and permissions + sudo chmod +x /opt/gitea/gitea-$VER rm -f /opt/gitea/gitea ln -sf gitea-$VER /opt/gitea/gitea +sudo chown -R gitea:gitea /opt/gitea/ /var/log/gitea + + # Download and install the gitea.service for systemd sudo curl -fsSL -o /etc/systemd/system/gitea.service https://git.coolaj86.com/coolaj86/gitea-installer.sh/raw/branch/master/dist/etc/systemd/system/gitea.service From 9a00313a6a43f61a47087079a0acc3298294dae2 Mon Sep 17 00:00:00 2001 From: Josh Mudge Date: Thu, 28 Jun 2018 15:35:30 -0600 Subject: [PATCH 25/33] Use sudo for permissions. --- install.bash | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/install.bash b/install.bash index a3d6637..8a7dccb 100755 --- a/install.bash +++ b/install.bash @@ -34,6 +34,7 @@ sudo adduser gitea --home /opt/gitea --disabled-password --gecos '' # Make some other potentially useful directories for that user/group sudo mkdir -p /opt/gitea/ /var/log/gitea +sudo chown -R gitea:gitea /opt/gitea/ /var/log/gitea # Download and install gitea @@ -49,7 +50,7 @@ fi # Check if architecure is ARMv6 and download Gitea if [ -n "$(uname -a | grep armv6l)" ]; then -sudo curl -fsSL -o "/opt/gitea/gitea-$VER" "https://dl.gitea.io/gitea/$VER/gitea-$VER-linux-arm-6" + sudo curl -fsSL -o "/opt/gitea/gitea-$VER" "https://dl.gitea.io/gitea/$VER/gitea-$VER-linux-arm-6" fi # Check if architecure is ARMv7 and download Gitea @@ -61,10 +62,7 @@ fi sudo chmod +x /opt/gitea/gitea-$VER rm -f /opt/gitea/gitea -ln -sf gitea-$VER /opt/gitea/gitea -sudo chown -R gitea:gitea /opt/gitea/ /var/log/gitea - - +sudo ln -sf gitea-$VER /opt/gitea/gitea # Download and install the gitea.service for systemd sudo curl -fsSL -o /etc/systemd/system/gitea.service https://git.coolaj86.com/coolaj86/gitea-installer.sh/raw/branch/master/dist/etc/systemd/system/gitea.service From fdd890d441e94e8c35f4c4ebb047575ed221ec0b Mon Sep 17 00:00:00 2001 From: Josh Mudge Date: Thu, 26 Jul 2018 14:39:18 -0600 Subject: [PATCH 26/33] Update Docs for typos and clarity. --- README.md | 42 +++++++++++++++++++++++++++++------------- 1 file changed, 29 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 25e903b..67a167e 100644 --- a/README.md +++ b/README.md @@ -1,16 +1,15 @@ # Gitea Installer -Installs [Gitea](https://gitea.io) (formerly gogs) as a systemd service +Installs [Gitea](https://gitea.io) (formerly Gogs) as a systemd service ## Screencast -**How to install Gitea**, and migrate one of your Microsoft Github, repos in 5 minutes. +**How to install Gitea** and migrate one of your Microsoft Github repos in 5 minutes. a screencast of me installing gitea and migrating one of my github repos - # Linux Install Script -You can download and run the installer script: +You can download and run the installer script using this command: `curl -fsSL https://git.coolaj86.com/coolaj86/gitea-installer.sh/raw/branch/master/install.bash | bash` @@ -18,9 +17,32 @@ You can pick a specific version to install. For example, if you were nostalgic f `curl -fsSL https://git.coolaj86.com/coolaj86/gitea-installer.sh/raw/branch/master/install.bash | bash -s version 1.2.0` -## Install Manually +# Gitea Web Setup (post install) -Or manually install by reading these instructions and following along: +Once you have gitea installed and running you must choose +which database to use, certain gitea paths, an admin user, etc. + +Go to: http://localhost:3000/ + +You should see these fields: (The following is for basic usage with this script, for more advance usage see: (https://docs.gitea.io/en-us/customizing-gitea/)[https://docs.gitea.io/en-us/customizing-gitea/]) + +Database Type: Use SQLite3 for the database. +Path: Leave this alone. +Application Name: Give your Gitea server a fancy name. +Repository Root Path: Leave this alone. +LFS Root Path: Leave this alone. +Run User: Leave this alone. +Domain: Replace this with your domain name for the server. +SSH Port: Leave this alone unless you want a custom port for SSH. +HTTP Port: Change this if you want Gitea to serve on a different port. You don't usually need to, Gitea is usually used behind a web server. +Application URL: Enter the full URL for your Gitea instance, like https://example.com/ +Log Path: Leave this alone. + +Click on "Admin Account Settings" to setup your user account and click "Install Gitea" when you are done.` + +## Manual Installation + +If you want to install Gitea manually, you can follow these instructions: ```bash # Create a 'gitea' user and group with the home /opt/gitea, no password (because it's a system user) and no GECOS @@ -41,12 +63,7 @@ sudo wget -O /etc/systemd/system/gitea.service https://git.coolaj86.com/coolaj86 sudo systemctl restart gitea ``` -# Gitea Web Setup (post install) - -Once you've gitea installed and running you must choose -which database to use, certain gitea paths, an admin user, etc. - -> http://localhost:3000/ +Then see the post-install instruction above. ## Customize Gitea @@ -64,7 +81,6 @@ All overrides to the existing theme can be placed in the `custom/public` and `cu * Change Landing Page * Google Analytics - ``` /opt/gitea/custom/public /opt/gitea/custom/templates From dcb820e844c8f3359633e5bc82c9f59d5881bca0 Mon Sep 17 00:00:00 2001 From: Josh Mudge Date: Thu, 26 Jul 2018 15:02:27 -0600 Subject: [PATCH 27/33] Symlink to path. --- install.bash | 1 + 1 file changed, 1 insertion(+) diff --git a/install.bash b/install.bash index 8a7dccb..622c4de 100755 --- a/install.bash +++ b/install.bash @@ -63,6 +63,7 @@ fi sudo chmod +x /opt/gitea/gitea-$VER rm -f /opt/gitea/gitea sudo ln -sf gitea-$VER /opt/gitea/gitea +sudo ln -sf gitea-$VER /usr/local/bin/gitea # Download and install the gitea.service for systemd sudo curl -fsSL -o /etc/systemd/system/gitea.service https://git.coolaj86.com/coolaj86/gitea-installer.sh/raw/branch/master/dist/etc/systemd/system/gitea.service From f389c2cad2ae34c6db69f661a26580b9e48d5065 Mon Sep 17 00:00:00 2001 From: Josh Mudge Date: Thu, 26 Jul 2018 15:16:16 -0600 Subject: [PATCH 28/33] Add script to automatically remove Gitea. --- README.md | 16 +++++++++++----- install.bash | 2 +- remove.sh | 12 ++++++++++++ 3 files changed, 24 insertions(+), 6 deletions(-) create mode 100644 remove.sh diff --git a/README.md b/README.md index 67a167e..7a0dfc2 100644 --- a/README.md +++ b/README.md @@ -45,21 +45,21 @@ Click on "Admin Account Settings" to setup your user account and click "Install If you want to install Gitea manually, you can follow these instructions: ```bash -# Create a 'gitea' user and group with the home /opt/gitea, no password (because it's a system user) and no GECOS +### Create a 'gitea' user and group with the home /opt/gitea, no password (because it's a system user) and no GECOS sudo adduser gitea --home /opt/gitea --disabled-password --gecos '' -# Make some other potentially useful directories for that user/group +### Make some other potentially useful directories for that user/group sudo mkdir -p /opt/gitea/ /var/log/gitea sudo chown -R gitea:gitea /opt/gitea/ /var/log/gitea -# Download and install gitea. Replace "amd64" with "i386" for 32 bit x86 or "arm-7" for ARMv7 and "arm-6" for ARMv6. +### Download and install gitea. Replace "amd64" with "i386" for 32 bit x86 or "arm-7" for ARMv7 and "arm-6" for ARMv6. sudo wget -O /opt/gitea/gitea https://dl.gitea.io/gitea/1.4.1/gitea-1.4.1-linux-amd64 sudo chmod +x /opt/gitea/gitea -# Download and install the gitea.service for systemd +### Download and install the gitea.service for systemd sudo wget -O /etc/systemd/system/gitea.service https://git.coolaj86.com/coolaj86/gitea-installer.sh/raw/master/dist/etc/systemd/system/gitea.service -# Start gitea +### Start gitea sudo systemctl restart gitea ``` @@ -103,3 +103,9 @@ You can find more information about customization and templates in the docs and # Troubleshooting systemd See [Troubleshooting systemd](https://git.coolaj86.com/coolaj86/service-installer.sh/src/master/README.md#troubleshooting-systemd) + +# Removing Gitea + +Run this command to uninstall Gitea: (THIS WILL REMOVE ALL DATA if you are using SQLite!) + +`curl -fsSL https://git.coolaj86.com/coolaj86/gitea-installer.sh/raw/branch/master/remove.bash | bash` diff --git a/install.bash b/install.bash index 622c4de..2589839 100755 --- a/install.bash +++ b/install.bash @@ -1,6 +1,6 @@ #!/bin/bash -# Most of code credit for determining version is here: https://gist.github.com/lukechilds/a83e1d7127b78fef38c2914c4ececc3c +# Most of the code credit for determining version is here: https://gist.github.com/lukechilds/a83e1d7127b78fef38c2914c4ececc3c VER=$(curl --silent "https://api.github.com/repos/go-gitea/gitea/releases/latest" | # Get latest release from GitHub api grep '"tag_name":' | # Get tag line sed -E 's/.*"([^"]+)".*/\1/' | # Pluck JSON value diff --git a/remove.sh b/remove.sh new file mode 100644 index 0000000..34f2067 --- /dev/null +++ b/remove.sh @@ -0,0 +1,12 @@ +# Gitea Uninstall Script +# This script removes Gitea as installed by this script. THIS DELTES ALL DATA if you are using SQLite. + +echo "Removing Gitea and DELETING ALL DATA." + +sudo systemctl stop gitea # Stop the Gitea service +sudo systemctl disable gitea # Disable the Gitea service automatically starting on boot. +sudo rm /etc/systemd/system/gitea.service # Delete the Gitea service. +sudo rm /usr/local/bin/gitea # Remove Gitea from Path +sudo rm -rf /opt/gitea # Remove Gitea Data + +echo "Done." From 90d27beaf606f5f8c262d7b9917b9602fcd9289b Mon Sep 17 00:00:00 2001 From: Josh Mudge Date: Thu, 26 Jul 2018 15:20:54 -0600 Subject: [PATCH 29/33] Make removal script more verbose. --- remove.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/remove.sh b/remove.sh index 34f2067..3f047f0 100644 --- a/remove.sh +++ b/remove.sh @@ -3,10 +3,17 @@ echo "Removing Gitea and DELETING ALL DATA." +echo "Stopping and removing the Gitea service." sudo systemctl stop gitea # Stop the Gitea service sudo systemctl disable gitea # Disable the Gitea service automatically starting on boot. sudo rm /etc/systemd/system/gitea.service # Delete the Gitea service. + +echo "Deleting Gitea configuration and Data." + sudo rm /usr/local/bin/gitea # Remove Gitea from Path sudo rm -rf /opt/gitea # Remove Gitea Data -echo "Done." +if test ! -d /opt/gitea + echo "Gitea has been completely removed." +else + echo "Gitea has not been completely removed. File an issue here: https://git.coolaj86.com/coolaj86/gitea-installer.sh/issues/new" From 406b1b719b9b266a5e875356c0494cf93e432082 Mon Sep 17 00:00:00 2001 From: Josh Mudge Date: Fri, 17 Aug 2018 18:14:10 -0600 Subject: [PATCH 30/33] Fix if block. --- remove.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/remove.sh b/remove.sh index 3f047f0..1fb38b4 100644 --- a/remove.sh +++ b/remove.sh @@ -17,3 +17,4 @@ if test ! -d /opt/gitea echo "Gitea has been completely removed." else echo "Gitea has not been completely removed. File an issue here: https://git.coolaj86.com/coolaj86/gitea-installer.sh/issues/new" +fi From ece1e705b001025fa7bd42337e45e2f32ad01f8d Mon Sep 17 00:00:00 2001 From: Josh Mudge Date: Mon, 20 Aug 2018 17:52:18 -0600 Subject: [PATCH 31/33] Fix typos in merge. --- README.md | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 8e8b41f..00433fe 100644 --- a/README.md +++ b/README.md @@ -4,23 +4,18 @@ Installs [Gitea](https://gitea.io) (formerly Gogs) as a systemd service # Easy Install (Linux) -a screencast of me installing gitea and migrating one of my github repos - -# Linux Install Script - You can download and run the installer script using this command: `curl -fsSL https://git.coolaj86.com/coolaj86/gitea-installer.sh/raw/branch/master/install.bash | bash` +a screencast of me installing gitea and migrating one of my github repos + +## Specific Versions + You can pick a specific version to install. For example, if you were nostalgic for 1.2.0, you could run: `curl -fsSL https://git.coolaj86.com/coolaj86/gitea-installer.sh/raw/branch/master/install.bash | bash -s version 1.2.0` -# Screencast - -how to install Gitea - - # After Installing Once you have gitea installed and running you must choose From ad1431695040b7f375bab12211b45abe344b9e91 Mon Sep 17 00:00:00 2001 From: Josh Mudge Date: Mon, 20 Aug 2018 18:37:34 -0600 Subject: [PATCH 32/33] Fix formatting. --- README.md | 36 +++++++++++++++++++++++------------- 1 file changed, 23 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 00433fe..60cba1c 100644 --- a/README.md +++ b/README.md @@ -23,21 +23,31 @@ which database to use, certain gitea paths, an admin user, etc. Go to: http://localhost:3000/ -You should see these fields: (The following is for basic usage with this script, for more advance usage see: (https://docs.gitea.io/en-us/customizing-gitea/)[https://docs.gitea.io/en-us/customizing-gitea/]) +You should see these fields: (The following is for basic usage with this script, for more advance usage see: [https://docs.gitea.io/en-us/customizing-gitea/](https://docs.gitea.io/en-us/customizing-gitea/)) -Database Type: Use SQLite3 for the database. -Path: Leave this alone. -Application Name: Give your Gitea server a fancy name. -Repository Root Path: Leave this alone. -LFS Root Path: Leave this alone. -Run User: Leave this alone. -Domain: Replace this with your domain name for the server. -SSH Port: Leave this alone unless you want a custom port for SSH. -HTTP Port: Change this if you want Gitea to serve on a different port. You don't usually need to, Gitea is usually used behind a web server. -Application URL: Enter the full URL for your Gitea instance, like https://example.com/ -Log Path: Leave this alone. +`Database Type:` Use SQLite3 for the database. -Click on "Admin Account Settings" to setup your user account and click "Install Gitea" when you are done.` +`Path:` Leave this alone. + +`Application Name:` Give your Gitea server a fancy name. + +`Repository Root Path:` Leave this alone. + +`LFS Root Path:` Leave this alone. + +`Run User:` Leave this alone. + +`Domain:` Replace this with your domain name for the server. + +`SSH Port:` Leave this alone unless you want a custom port for SSH. + +`HTTP Port:` Change this if you want Gitea to serve on a different port. You don't usually need to, Gitea is usually used behind a web server. + +`Application URL:` Enter the full URL for your Gitea instance, like https://example.com/ + +`Log Path:` Leave this alone. + +Click on "Admin Account Settings" to setup your user account and click "Install Gitea" when you are done. ## Manual Install From 56cf425e46c682ae480940efbe7196775e9daf0e Mon Sep 17 00:00:00 2001 From: Josh Mudge Date: Mon, 20 Aug 2018 18:40:14 -0600 Subject: [PATCH 33/33] Make a little better side-note. --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 60cba1c..3655724 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,9 @@ which database to use, certain gitea paths, an admin user, etc. Go to: http://localhost:3000/ -You should see these fields: (The following is for basic usage with this script, for more advance usage see: [https://docs.gitea.io/en-us/customizing-gitea/](https://docs.gitea.io/en-us/customizing-gitea/)) +You should see these fields: + +*The following is for basic usage with this script, for more advance usage see: [https://docs.gitea.io/en-us/customizing-gitea/](https://docs.gitea.io/en-us/customizing-gitea/)* `Database Type:` Use SQLite3 for the database.