#!/bin/bash

# Source debconf library.
. /usr/share/debconf/confmodule

# Apply all m23 custom patches stored in /m23/m23customPatch.
/m23/bin/applyAllm23CustomPatches

#get username and password of the debian MySQL system
dbParams=$(/m23/bin/serverInfoMySQLAccessParams)

# Run all SQL files
cat /tmp/m23-install/*.sql | mysql -f $dbParams m23 2>> /var/log/customsettingsm23serverNonCriticalErrorMessages.log

db_stop
