|
@@ -6379,6 +6379,9 @@ function upgrade_golang {
|
6379
|
6379
|
# add a gogs user account within which the gvm home directory will exist
|
6380
|
6380
|
adduser --disabled-login --gecos 'Gogs' git
|
6381
|
6381
|
fi
|
|
6382
|
+ if [ -d /home/git/Maildir ]; then
|
|
6383
|
+ rm -rf /home/git/Maildir
|
|
6384
|
+ fi
|
6382
|
6385
|
|
6383
|
6386
|
# TODO: this script is all over the place
|
6384
|
6387
|
# and contains hardcoded github. See if you can do better
|
|
@@ -6438,10 +6441,21 @@ function install_gogs {
|
6438
|
6441
|
|
6439
|
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
|
6452
|
if [ ! -d /home/git ]; then
|
6442
|
6453
|
# add a gogs user account
|
6443
|
6454
|
adduser --disabled-login --gecos 'Gogs' git
|
6444
|
6455
|
fi
|
|
6456
|
+ if [ -d /home/git/Maildir ]; then
|
|
6457
|
+ rm -rf /home/git/Maildir
|
|
6458
|
+ fi
|
6445
|
6459
|
|
6446
|
6460
|
if [ -d $GOPATH/src/github.com/gogits ]; then
|
6447
|
6461
|
rm -rf $GOPATH/src/github.com/gogits
|