Skip to content
Permalink
Browse files

make sure that initdb works on remote mysql server as well.

symbolic link because openpetra-server.sh and service are identical for Debian and CentOS
  • Loading branch information...
tpokorra committed Aug 28, 2019
1 parent db53404 commit c042b0168ff2925fb284525c26563e022c112dc5
@@ -297,8 +297,11 @@ initdb() {
if [ "$OPENPETRA_DBHOST" == "localhost" ]
then
echo "initialise database"
systemctl start mariadb
systemctl enable mariadb
if [ $OPENPETRA_DBHOST == "localhost" ]
then
systemctl start mariadb
systemctl enable mariadb
fi
echo "DROP DATABASE IF EXISTS \`$OPENPETRA_DBNAME\`;" > $OpenPetraPath/tmp/createdb-MySQL.sql
echo "CREATE DATABASE IF NOT EXISTS \`$OPENPETRA_DBNAME\`;" >> $OpenPetraPath/tmp/createdb-MySQL.sql
echo "USE \`$OPENPETRA_DBNAME\`;" >> $OpenPetraPath/tmp/createdb-MySQL.sql

This file was deleted.

0 comments on commit c042b01

Please sign in to comment.
You can’t perform that action at this time.