mirror of
https://github.com/itiligent/Easy-Guacamole-Installer.git
synced 2025-12-15 02:35:49 +00:00
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.
This commit is contained in:
parent
56abf81ffd
commit
d580223174
1 changed files with 1 additions and 1 deletions
|
|
@ -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} <guacamole-auth-jdbc-${NEW_GUAC_VERSION}/mysql/schema/upgrade/${FILE} &>>${INSTALL_LOG}
|
||||
mysql -u root -p${MYSQL_ROOT_PWD} -D ${GUAC_DB} -h ${MYSQL_HOST} -P ${MYSQL_PORT} <guacamole-auth-jdbc-${NEW_GUAC_VERSION}/mysql/schema/upgrade/${FILE} &>>${INSTALL_LOG}
|
||||
fi
|
||||
done
|
||||
if [[ $? -ne 0 ]]; then
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue