mirror of
				https://git.koehlerweb.org/frodovdr/guac-install
				synced 2025-10-31 10:36:40 +01:00 
			
		
		
		
	echo for database patching
This commit is contained in:
		| @@ -92,6 +92,7 @@ do | |||||||
|     FILEVERSION=$(echo ${FILE} | grep -oP 'upgrade-pre-\K[0-9\.]+(?=\.)') |     FILEVERSION=$(echo ${FILE} | grep -oP 'upgrade-pre-\K[0-9\.]+(?=\.)') | ||||||
|     if [[ $(echo -e "${FILEVERSION}\n${OLDVERSION}" | sort -V | head -n1) == ${OLDVERSION} && ${FILEVERSION} != ${OLDVERSION} ]] |     if [[ $(echo -e "${FILEVERSION}\n${OLDVERSION}" | sort -V | head -n1) == ${OLDVERSION} && ${FILEVERSION} != ${OLDVERSION} ]] | ||||||
|     then |     then | ||||||
|  |         echo "Patching ${DATABASE} with ${FILE}" | ||||||
|         mysql -u root ${DATABASE} < guacamole-auth-jdbc-${GUACVERSION}/mysql/schema/upgrade/${FILE} |         mysql -u root ${DATABASE} < guacamole-auth-jdbc-${GUACVERSION}/mysql/schema/upgrade/${FILE} | ||||||
|     fi |     fi | ||||||
| done | done | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user