Prevent root using

This commit is contained in:
Gogs 2021-09-28 19:36:31 +02:00
parent 524e5f89c6
commit ef02c442f0
1 changed files with 3 additions and 0 deletions

View File

@ -4,6 +4,9 @@
work="$HOME/apps"
gitea="$work/gitea"
# If run as root, yell at me and exit
[[ $EUID -eq 0 ]] && echo "Don't use root to manage Gitea... It sucks..." && exit 1
# Check Gitea versions
version=$1