Commit d9d090c3 authored by Tomek Mrugalski's avatar Tomek Mrugalski 🛰

[#61,!114] Fixed 2 bugs in kea-admin

 Thanks for a patch to lmasarati!
parent 926086ee
......@@ -22,7 +22,7 @@ mysql_execute() {
mysql -N -B "$@" -e "${QUERY}"
retcode=$?
else
mysql -N -B --database="${db_name}" --user="${db_user}" --password="${db_password}" -e "${QUERY}"
mysql -N -B --host="${db_host}" --database="${db_name}" --user="${db_user}" --password="${db_password}" -e "${QUERY}"
retcode=$?
fi
......@@ -36,7 +36,7 @@ mysql_execute_script() {
mysql -N -B "$@" < "${file}"
retcode=$?
else
mysql -N -B --database="${db_name}" --user="${db_user}" --password="${db_password}" < "${file}"
mysql -N -B --host="${db_host}" --database="${db_name}" --user="${db_user}" --password="${db_password}" < "${file}"
retcode=$?
fi
......
......@@ -16,6 +16,7 @@
# Get the location of the kea-admin scripts
prefix=@prefix@
export prefix
SCRIPTS_DIR_DEFAULT=@datarootdir@/@PACKAGE@/scripts
scripts_dir=${SCRIPTS_DIR_DEFAULT}
VERSION=@PACKAGE_VERSION@
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment