Files in gogs home

This commit is contained in:
Bob Mottram 2016-09-28 17:52:00 +01:00
parent 426c2c2816
commit 3361babb54
1 changed files with 2 additions and 2 deletions

View File

@ -145,7 +145,7 @@ function upgrade_gogs {
if [ ! -d $INSTALL_DIR/gogs ]; then if [ ! -d $INSTALL_DIR/gogs ]; then
exit 37823 exit 37823
fi fi
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}
fi fi
@ -377,7 +377,7 @@ function install_gogs {
if [ ! -d $INSTALL_DIR/gogs ]; then if [ ! -d $INSTALL_DIR/gogs ]; then
exit 37823 exit 37823
fi fi
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}
fi fi