From fccc13b8dc623bd50df7d3c3578cb26775b42edb Mon Sep 17 00:00:00 2001 From: pierreozoux <pierre@ozoux.net> Date: Sun, 22 Nov 2015 14:29:17 +0000 Subject: [PATCH] Adds mysql upgrade hotfix --- hotfixes/2015-11-22-upgrade-mysql.sh | 1 + 1 file changed, 1 insertion(+) create mode 100644 hotfixes/2015-11-22-upgrade-mysql.sh diff --git a/hotfixes/2015-11-22-upgrade-mysql.sh b/hotfixes/2015-11-22-upgrade-mysql.sh new file mode 100644 index 0000000..c01d761 --- /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' -- GitLab