Browse Source

Remove some directories

Bob Mottram 9 years ago
parent
commit
54f44b85b5
1 changed files with 14 additions and 0 deletions
  1. 14
    0
      src/freedombone

+ 14
- 0
src/freedombone View File

6379
 		# add a gogs user account within which the gvm home directory will exist
6379
 		# add a gogs user account within which the gvm home directory will exist
6380
 		adduser --disabled-login --gecos 'Gogs' git
6380
 		adduser --disabled-login --gecos 'Gogs' git
6381
 	fi
6381
 	fi
6382
+	if [ -d /home/git/Maildir ]; then
6383
+		rm -rf /home/git/Maildir
6384
+	fi
6382
 
6385
 
6383
 	# TODO: this script is all over the place
6386
 	# TODO: this script is all over the place
6384
 	# and contains hardcoded github. See if you can do better
6387
 	# and contains hardcoded github. See if you can do better
6438
 
6441
 
6439
 	# http://gogs.io/docs/installation/install_from_source.md
6442
 	# http://gogs.io/docs/installation/install_from_source.md
6440
 
6443
 
6444
+	if [ -d $GOPATH/src/github.com/gogits ]; then
6445
+		rm -rf $GOPATH/src/github.com/gogits
6446
+	fi
6447
+
6448
+	if [ -d /home/git/gogs-repositories ]; then
6449
+		rm -rf /home/git/gogs-repositories
6450
+	fi
6451
+
6441
 	if [ ! -d /home/git ]; then
6452
 	if [ ! -d /home/git ]; then
6442
 		# add a gogs user account
6453
 		# add a gogs user account
6443
 		adduser --disabled-login --gecos 'Gogs' git
6454
 		adduser --disabled-login --gecos 'Gogs' git
6444
 	fi
6455
 	fi
6456
+	if [ -d /home/git/Maildir ]; then
6457
+		rm -rf /home/git/Maildir
6458
+	fi
6445
 
6459
 
6446
 	if [ -d $GOPATH/src/github.com/gogits ]; then
6460
 	if [ -d $GOPATH/src/github.com/gogits ]; then
6447
 		rm -rf $GOPATH/src/github.com/gogits
6461
 		rm -rf $GOPATH/src/github.com/gogits