@@ -, +, @@ koha-dump, koha-mysql and koha-mysqlcheck --- debian/scripts/koha-dump | 1 + debian/scripts/koha-mysql | 3 ++- debian/scripts/koha-mysqlcheck | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) --- a/debian/scripts/koha-dump +++ a/debian/scripts/koha-dump @@ -63,6 +63,7 @@ dump_instance() # Dump database. mysqlhost="$( xmlstarlet sel -t -v 'yazgfs/config/hostname' $kohaconfig )" + mysqlport="$( xmlstarlet sel -t -v 'yazgfs/config/port' $kohaconfig )" mysqldb="$( xmlstarlet sel -t -v 'yazgfs/config/database' $kohaconfig )" mysqluser="$( xmlstarlet sel -t -v 'yazgfs/config/user' $kohaconfig )" mysqlpass="$( xmlstarlet sel -t -v 'yazgfs/config/pass' $kohaconfig )" --- a/debian/scripts/koha-mysql +++ a/debian/scripts/koha-mysql @@ -51,10 +51,11 @@ shift # remove instance name from argument list. kohaconfig="/etc/koha/sites/$name/koha-conf.xml" mysqlhost="$( xmlstarlet sel -t -v 'yazgfs/config/hostname' $kohaconfig )" +mysqlport="$( xmlstarlet sel -t -v 'yazgfs/config/port' $kohaconfig )" mysqldb="$( xmlstarlet sel -t -v 'yazgfs/config/database' $kohaconfig )" mysqluser="$( xmlstarlet sel -t -v 'yazgfs/config/user' $kohaconfig )" mysqlpass="$( xmlstarlet sel -t -v 'yazgfs/config/pass' $kohaconfig )" -mysql --host="$mysqlhost" --user="$mysqluser" --password="$mysqlpass" \ +mysql --host="$mysqlhost" --port="$mysqlport" --user="$mysqluser" --password="$mysqlpass" \ "$mysqldb" "${@}" --- a/debian/scripts/koha-mysqlcheck +++ a/debian/scripts/koha-mysqlcheck @@ -44,8 +44,9 @@ kohaconfig="/etc/koha/sites/$name/koha-conf.xml" mysqlhost="$( xmlstarlet sel -t -v 'yazgfs/config/hostname' $kohaconfig )" mysqldb="$( xmlstarlet sel -t -v 'yazgfs/config/database' $kohaconfig )" +mysqlport="$( xmlstarlet sel -t -v 'yazgfs/config/port' $kohaconfig )" mysqluser="$( xmlstarlet sel -t -v 'yazgfs/config/user' $kohaconfig )" mysqlpass="$( xmlstarlet sel -t -v 'yazgfs/config/pass' $kohaconfig )" -mysqlcheck --host="$mysqlhost" --user="$mysqluser" --password="$mysqlpass" \ +mysqlcheck --host="$mysqlhost" --port="$mysqlport" --user="$mysqluser" --password="$mysqlpass" \ $args "$mysqldb" --