Remove directory after install failure

This commit is contained in:
Bob Mottram 2016-04-29 09:19:49 +01:00
parent c8d11f6838
commit 2e2884e53a
No known key found for this signature in database
GPG Key ID: BA68F26108DC9F87
1 changed files with 5 additions and 1 deletions

View File

@ -6336,6 +6336,10 @@ function install_gogs {
# http://gogs.io/docs/installation/install_from_source.md
if [ -d $GOPATH/src/github.com/gogits ]; then
rm -rf $GOPATH/src/github.com/gogits
fi
# add a gogs user account
adduser --disabled-login --gecos 'Gogs' git