Remove any existing gogs install
This commit is contained in:
parent
3361babb54
commit
0373f04ecb
|
@ -145,6 +145,7 @@ function upgrade_gogs {
|
||||||
if [ ! -d $INSTALL_DIR/gogs ]; then
|
if [ ! -d $INSTALL_DIR/gogs ]; then
|
||||||
exit 37823
|
exit 37823
|
||||||
fi
|
fi
|
||||||
|
rm -rf /home/$GOGS_USERNAME/*
|
||||||
cp -r $INSTALL_DIR/gogs/* /home/$GOGS_USERNAME
|
cp -r $INSTALL_DIR/gogs/* /home/$GOGS_USERNAME
|
||||||
if [ -f ${GOGS_FILE} ]; then
|
if [ -f ${GOGS_FILE} ]; then
|
||||||
rm ${GOGS_FILE}
|
rm ${GOGS_FILE}
|
||||||
|
@ -377,6 +378,7 @@ function install_gogs {
|
||||||
if [ ! -d $INSTALL_DIR/gogs ]; then
|
if [ ! -d $INSTALL_DIR/gogs ]; then
|
||||||
exit 37823
|
exit 37823
|
||||||
fi
|
fi
|
||||||
|
rm -rf /home/$GOGS_USERNAME/*
|
||||||
cp -r $INSTALL_DIR/gogs/* /home/$GOGS_USERNAME
|
cp -r $INSTALL_DIR/gogs/* /home/$GOGS_USERNAME
|
||||||
if [ -f ${GOGS_FILE} ]; then
|
if [ -f ${GOGS_FILE} ]; then
|
||||||
rm ${GOGS_FILE}
|
rm ${GOGS_FILE}
|
||||||
|
|
Loading…
Reference in New Issue