From d580223174ca0210642d1ed19a55e8d9edb82f98 Mon Sep 17 00:00:00 2001 From: Lee Porte Date: Tue, 1 Jul 2025 20:57:40 +0100 Subject: [PATCH] Add in MYSQL_ROOT_PASSWORD variable to patching command Despite a mysql root password being set it was not being used when upgrading the guacamole-auth-jdbc extension. This is now used in the command. --- upgrade-guacamole.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upgrade-guacamole.sh b/upgrade-guacamole.sh index 1f9f765..ee01bfd 100644 --- a/upgrade-guacamole.sh +++ b/upgrade-guacamole.sh @@ -231,7 +231,7 @@ if [[ "${INSTALL_MYSQL}" = true ]]; then FILEVERSION=$(echo ${FILE} | grep -oP 'upgrade-pre-\K[0-9\.]+(?=\.)') if [[ $(echo -e "${FILEVERSION}\n${OLD_GUAC_VERSION}" | sort -V | head -n1) == ${OLD_GUAC_VERSION} && ${FILEVERSION} != ${OLD_GUAC_VERSION} ]]; then echo "Patching ${GUAC_DB} with ${FILE}" - mysql -u root -D ${GUAC_DB} -h ${MYSQL_HOST} -P ${MYSQL_PORT} >${INSTALL_LOG} + mysql -u root -p${MYSQL_ROOT_PWD} -D ${GUAC_DB} -h ${MYSQL_HOST} -P ${MYSQL_PORT} >${INSTALL_LOG} fi done if [[ $? -ne 0 ]]; then