Browse Source

Check that the gogs database template exists

Bob Mottram 9 years ago
parent
commit
c5c690b47d
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      src/freedombone

+ 4
- 0
src/freedombone View File

@@ -6553,6 +6553,10 @@ function install_gogs {
6553 6553
 	fi
6554 6554
 
6555 6555
 	create_database gogs "$GOGS_ADMIN_PASSWORD"
6556
+	if [ ! -f $GOPATH/src/github.com/gogits/gogs/scripts/mysql.sql ]; then
6557
+		echo $'MySql template for Gogs was not found'
6558
+		exit 72528
6559
+	fi
6556 6560
 	mysql -u root --password="$MARIADB_PASSWORD" -D gogs < $GOPATH/src/github.com/gogits/gogs/scripts/mysql.sql
6557 6561
 
6558 6562
 	chmod 600 $GOPATH/src/github.com/gogits/gogs/custom/conf/app.ini