From 064b9612f91f406a04434bb99ebf7ab8509df58a Mon Sep 17 00:00:00 2001 From: Chase Wright Date: Sat, 20 Jan 2018 19:57:34 -0500 Subject: [PATCH] echo for database patching --- guac-upgrade.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/guac-upgrade.sh b/guac-upgrade.sh index 3e26566..72cb8bd 100644 --- a/guac-upgrade.sh +++ b/guac-upgrade.sh @@ -92,6 +92,7 @@ do FILEVERSION=$(echo ${FILE} | grep -oP 'upgrade-pre-\K[0-9\.]+(?=\.)') if [[ $(echo -e "${FILEVERSION}\n${OLDVERSION}" | sort -V | head -n1) == ${OLDVERSION} && ${FILEVERSION} != ${OLDVERSION} ]] then + echo "Patching ${DATABASE} with ${FILE}" mysql -u root ${DATABASE} < guacamole-auth-jdbc-${GUACVERSION}/mysql/schema/upgrade/${FILE} fi done