Prevent root using
This commit is contained in:
parent
524e5f89c6
commit
ef02c442f0
|
@ -4,6 +4,9 @@
|
||||||
work="$HOME/apps"
|
work="$HOME/apps"
|
||||||
gitea="$work/gitea"
|
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
|
# Check Gitea versions
|
||||||
version=$1
|
version=$1
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue