From da1c7d76ac63512244a632aa40daa68afa876d0e Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Sat, 15 Dec 2018 20:09:22 +0100 Subject: [PATCH] option cleanup --- README.md | 12 +++++++----- bin/update-gitea.sh | 4 ++-- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 1701af6..26aa5db 100644 --- a/README.md +++ b/README.md @@ -22,11 +22,13 @@ Update script sets options by default, can be changed at top of script: -- `giteaBinary`: Gitea binary under `/home/git/gitea/gitea` -- `arch`: architecture is `linux-amd64` -- `giteaUpdateStorage`: downloaded files will be stored in `/home/git/gitea-update` -- `giteaUser`: linux user Gitea is running under, `git` -- `giteaGroup`: linux group Gitea is running under, `git` +Option | Default | Description +-- | -- | -- +`giteaBinary` | `/home/git/gitea/gitea` | Gitea binary path +`arch` | `linux-amd64` | Server architecture +`giteaStore` | `/home/git/gitea-update` | Directory where update files will be stored +`giteaUser` | `git` | linux user Gitea is running under +`giteaGroup` | `git` | linux group Gitea is running under ```bash # run update script with sudo, passing version number as option diff --git a/bin/update-gitea.sh b/bin/update-gitea.sh index a49bbdc..43ba127 100755 --- a/bin/update-gitea.sh +++ b/bin/update-gitea.sh @@ -9,7 +9,7 @@ set -e version=$1 arch="linux-amd64" giteaBinary="/home/git/gitea/gitea" -giteaUpdateStorage="/home/git/gitea-update" +giteaStore="/home/git/gitea-update" giteaUser="git" giteaGroup="git" @@ -18,7 +18,7 @@ sudo service gitea stop echo "Stopped Gitea." # download new binary -cd $giteaUpdateStorage +cd $giteaStore echo "Downloading gitea-${version}-${arch}..." wget -O "gitea-${version}-${arch}" "https://dl.gitea.io/gitea/${version}/gitea-${version}-${arch}"