Remove gogs user if it already exists
This commit is contained in:
parent
5765abcc55
commit
5794a63df0
|
@ -6417,6 +6417,13 @@ function install_gogs {
|
|||
rm -rf $GOPATH/src/github.com/gogits
|
||||
fi
|
||||
|
||||
if [ -d /home/gogs ]; then
|
||||
userdel -r gogs
|
||||
fi
|
||||
if [ -d /home/gogs ]; then
|
||||
rm -rf /home/gogs
|
||||
fi
|
||||
|
||||
# add a gogs user account
|
||||
adduser --disabled-login --gecos 'Gogs' git
|
||||
|
||||
|
|
Loading…
Reference in New Issue