|
@@ -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
|