Remove some directories
This commit is contained in:
parent
c1c99f42f9
commit
54f44b85b5
|
@ -6379,6 +6379,9 @@ function upgrade_golang {
|
||||||
# add a gogs user account within which the gvm home directory will exist
|
# add a gogs user account within which the gvm home directory will exist
|
||||||
adduser --disabled-login --gecos 'Gogs' git
|
adduser --disabled-login --gecos 'Gogs' git
|
||||||
fi
|
fi
|
||||||
|
if [ -d /home/git/Maildir ]; then
|
||||||
|
rm -rf /home/git/Maildir
|
||||||
|
fi
|
||||||
|
|
||||||
# TODO: this script is all over the place
|
# TODO: this script is all over the place
|
||||||
# and contains hardcoded github. See if you can do better
|
# and contains hardcoded github. See if you can do better
|
||||||
|
@ -6438,10 +6441,21 @@ function install_gogs {
|
||||||
|
|
||||||
# http://gogs.io/docs/installation/install_from_source.md
|
# 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
|
||||||
|
|
||||||
|
if [ -d /home/git/gogs-repositories ]; then
|
||||||
|
rm -rf /home/git/gogs-repositories
|
||||||
|
fi
|
||||||
|
|
||||||
if [ ! -d /home/git ]; then
|
if [ ! -d /home/git ]; then
|
||||||
# add a gogs user account
|
# add a gogs user account
|
||||||
adduser --disabled-login --gecos 'Gogs' git
|
adduser --disabled-login --gecos 'Gogs' git
|
||||||
fi
|
fi
|
||||||
|
if [ -d /home/git/Maildir ]; then
|
||||||
|
rm -rf /home/git/Maildir
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -d $GOPATH/src/github.com/gogits ]; then
|
if [ -d $GOPATH/src/github.com/gogits ]; then
|
||||||
rm -rf $GOPATH/src/github.com/gogits
|
rm -rf $GOPATH/src/github.com/gogits
|
||||||
|
|
Loading…
Reference in New Issue