diff --git a/hotfixes/2015-11-22-upgrade-mysql.sh b/hotfixes/2015-11-22-upgrade-mysql.sh new file mode 100644 index 0000000000000000000000000000000000000000..c01d761f3e3c3b308f2c9ecf09e3cfc0f91c2cd6 --- /dev/null +++ b/hotfixes/2015-11-22-upgrade-mysql.sh @@ -0,0 +1 @@ +systemctl list-units | grep failed | grep b-u | xargs systemctl status | grep -a2 'SHOW VARIABLES' | grep .service | cut -d'@' -f2 | cut -d'.' -f1,2 | sed "s/\.//g" | sed "s/-//g" | sed "s/$/_db_1/" | xargs -I % docker exec % bash -c 'mysql_upgrade -uroot -p$MYSQL_ROOT_PASSWORD'