From c5c690b47dbac41203473746fe305c96a6ac77e6 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 10 May 2016 08:23:37 +0100 Subject: [PATCH] Check that the gogs database template exists --- src/freedombone | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/freedombone b/src/freedombone index 75ec9eb3..dbaa98be 100755 --- a/src/freedombone +++ b/src/freedombone @@ -6553,6 +6553,10 @@ function install_gogs { fi create_database gogs "$GOGS_ADMIN_PASSWORD" + if [ ! -f $GOPATH/src/github.com/gogits/gogs/scripts/mysql.sql ]; then + echo $'MySql template for Gogs was not found' + exit 72528 + fi mysql -u root --password="$MARIADB_PASSWORD" -D gogs < $GOPATH/src/github.com/gogits/gogs/scripts/mysql.sql chmod 600 $GOPATH/src/github.com/gogits/gogs/custom/conf/app.ini