update script tweaks
This commit is contained in:
parent
77168b4b56
commit
379e08a2d1
@ -19,8 +19,8 @@
|
||||
## Update Gitea
|
||||
|
||||
```bash
|
||||
# run update script with sudo, passing version number as option
|
||||
sudo ./bin/update-gitea.sh 1.6.1
|
||||
# run update script, passing version number as option
|
||||
./bin/update-gitea.sh 1.6.1
|
||||
```
|
||||
|
||||
Update script sets options by default, can be changed at top of script:
|
||||
|
@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# usage, run with sudo:
|
||||
# sudo ./update-gitea.sh 1.6.1
|
||||
# ./update-gitea.sh 1.6.1
|
||||
#
|
||||
|
||||
set -e
|
||||
@ -24,12 +24,12 @@ echo "Downloading gitea-${version}-${arch}..."
|
||||
wget -O "gitea-${version}-${arch}" "https://dl.gitea.io/gitea/${version}/gitea-${version}-${arch}"
|
||||
|
||||
# copy new binary over old one
|
||||
cp "gitea-${version}-${arch}" $giteaBinary
|
||||
sudo cp "gitea-${version}-${arch}" $giteaBinary
|
||||
echo "Updated Gitea binary v${version}."
|
||||
|
||||
# set permissions
|
||||
chown $giteaUser:$giteaGroup $giteaBinary
|
||||
chmod +x $giteaBinary
|
||||
sudo chown $giteaUser:$giteaGroup $giteaBinary
|
||||
sudo chmod +x $giteaBinary
|
||||
echo "Set permissions."
|
||||
|
||||
# start Gitea
|
||||
|
Loading…
Reference in New Issue
Block a user