Selaa lähdekoodia

Remove gogs user if it already exists

Bob Mottram 9 vuotta sitten
vanhempi
commit
5794a63df0
1 muutettua tiedostoa jossa 7 lisäystä ja 0 poistoa
  1. 7
    0
      src/freedombone

+ 7
- 0
src/freedombone Näytä tiedosto

@@ -6417,6 +6417,13 @@ function install_gogs {
6417 6417
 		rm -rf $GOPATH/src/github.com/gogits
6418 6418
 	fi
6419 6419
 
6420
+	if [ -d /home/gogs ]; then
6421
+		userdel -r gogs
6422
+	fi
6423
+	if [ -d /home/gogs ]; then
6424
+		rm -rf /home/gogs
6425
+	fi
6426
+
6420 6427
 	# add a gogs user account
6421 6428
 	adduser --disabled-login --gecos 'Gogs' git
6422 6429