Remove directory after install failure
This commit is contained in:
parent
c8d11f6838
commit
2e2884e53a
|
@ -6336,6 +6336,10 @@ function install_gogs {
|
||||||
|
|
||||||
# http://gogs.io/docs/installation/install_from_source.md
|
# 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
|
# add a gogs user account
|
||||||
adduser --disabled-login --gecos 'Gogs' git
|
adduser --disabled-login --gecos 'Gogs' git
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue