From 2e2884e53a5682662cd426033e3f19db28409a59 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 29 Apr 2016 09:19:49 +0100 Subject: [PATCH] Remove directory after install failure --- src/freedombone | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/freedombone b/src/freedombone index f4c1c00b..8d15430a 100755 --- a/src/freedombone +++ b/src/freedombone @@ -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