Remove directory after install failure
This commit is contained in:
parent
c8d11f6838
commit
2e2884e53a
|
@ -5343,7 +5343,7 @@ function install_monkeysphere {
|
|||
return
|
||||
fi
|
||||
apt-get -y install monkeysphere msva-perl
|
||||
su -c "monkeysphere gen-subkey $MY_GPG_PUBLIC_KEY_ID" - $MY_USERNAME
|
||||
su -c "monkeysphere gen-subkey $MY_GPG_PUBLIC_KEY_ID" - $MY_USERNAME
|
||||
|
||||
echo 'install_monkeysphere' >> $COMPLETION_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
|
||||
|
||||
|
|
Loading…
Reference in New Issue