From 5794a63df01cb3475a1d50c6680873ec848485d4 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 8 May 2016 17:41:56 +0100 Subject: [PATCH] Remove gogs user if it already exists --- src/freedombone | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/freedombone b/src/freedombone index bb72c482..36079031 100755 --- a/src/freedombone +++ b/src/freedombone @@ -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