Add README.md and comments

This commit is contained in:
Gogs 2021-09-28 19:46:29 +02:00
parent ef02c442f0
commit 9a380de087
2 changed files with 22 additions and 2 deletions

20
README.md Normal file
View File

@ -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

View File

@ -1,8 +1,8 @@
#!/bin/bash
# Custom location
work="$HOME/apps"
gitea="$work/gitea"
work="$HOME/apps" # Location of your Gitea installation
gitea="$work/gitea" # Location of your Gitea executable
# If run as root, yell at me and exit
[[ $EUID -eq 0 ]] && echo "Don't use root to manage Gitea... It sucks..." && exit 1