Add README.md and comments
This commit is contained in:
parent
ef02c442f0
commit
9a380de087
|
@ -0,0 +1,20 @@
|
||||||
|
# Automatic upgrade for Gitea
|
||||||
|
|
||||||
|
## WARNING
|
||||||
|
No guarantees, only tested in my environment, don't come and complain.
|
||||||
|
|
||||||
|
## Prerequisite
|
||||||
|
|
||||||
|
Please fill in the `work` and `gitea` variables at the beginning of the script (usually, only `work` have to be customize).
|
||||||
|
|
||||||
|
## Use
|
||||||
|
|
||||||
|
```
|
||||||
|
./upgrade-gitea.sh
|
||||||
|
```
|
||||||
|
|
||||||
|
You can specify a version, else it take the last stable.
|
||||||
|
|
||||||
|
If something go wrong, you will find a backup of your last executable in /tmp/gitea
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Custom location
|
# Custom location
|
||||||
work="$HOME/apps"
|
work="$HOME/apps" # Location of your Gitea installation
|
||||||
gitea="$work/gitea"
|
gitea="$work/gitea" # Location of your Gitea executable
|
||||||
|
|
||||||
# If run as root, yell at me and exit
|
# If run as root, yell at me and exit
|
||||||
[[ $EUID -eq 0 ]] && echo "Don't use root to manage Gitea... It sucks..." && exit 1
|
[[ $EUID -eq 0 ]] && echo "Don't use root to manage Gitea... It sucks..." && exit 1
|
||||||
|
|
Loading…
Reference in New Issue