option cleanup
This commit is contained in:
parent
fa6c3b8bb2
commit
da1c7d76ac
12
README.md
12
README.md
@ -22,11 +22,13 @@
|
|||||||
|
|
||||||
Update script sets options by default, can be changed at top of script:
|
Update script sets options by default, can be changed at top of script:
|
||||||
|
|
||||||
- `giteaBinary`: Gitea binary under `/home/git/gitea/gitea`
|
Option | Default | Description
|
||||||
- `arch`: architecture is `linux-amd64`
|
-- | -- | --
|
||||||
- `giteaUpdateStorage`: downloaded files will be stored in `/home/git/gitea-update`
|
`giteaBinary` | `/home/git/gitea/gitea` | Gitea binary path
|
||||||
- `giteaUser`: linux user Gitea is running under, `git`
|
`arch` | `linux-amd64` | Server architecture
|
||||||
- `giteaGroup`: linux group Gitea is running under, `git`
|
`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
|
```bash
|
||||||
# run update script with sudo, passing version number as option
|
# run update script with sudo, passing version number as option
|
||||||
|
@ -9,7 +9,7 @@ set -e
|
|||||||
version=$1
|
version=$1
|
||||||
arch="linux-amd64"
|
arch="linux-amd64"
|
||||||
giteaBinary="/home/git/gitea/gitea"
|
giteaBinary="/home/git/gitea/gitea"
|
||||||
giteaUpdateStorage="/home/git/gitea-update"
|
giteaStore="/home/git/gitea-update"
|
||||||
giteaUser="git"
|
giteaUser="git"
|
||||||
giteaGroup="git"
|
giteaGroup="git"
|
||||||
|
|
||||||
@ -18,7 +18,7 @@ sudo service gitea stop
|
|||||||
echo "Stopped Gitea."
|
echo "Stopped Gitea."
|
||||||
|
|
||||||
# download new binary
|
# download new binary
|
||||||
cd $giteaUpdateStorage
|
cd $giteaStore
|
||||||
echo "Downloading gitea-${version}-${arch}..."
|
echo "Downloading gitea-${version}-${arch}..."
|
||||||
|
|
||||||
wget -O "gitea-${version}-${arch}" "https://dl.gitea.io/gitea/${version}/gitea-${version}-${arch}"
|
wget -O "gitea-${version}-${arch}" "https://dl.gitea.io/gitea/${version}/gitea-${version}-${arch}"
|
||||||
|
Loading…
Reference in New Issue
Block a user