Adds mysql upgrade hotfix
This commit is contained in:
parent
8aefd79d01
commit
fccc13b8dc
1 changed files with 1 additions and 0 deletions
1
hotfixes/2015-11-22-upgrade-mysql.sh
Normal file
1
hotfixes/2015-11-22-upgrade-mysql.sh
Normal file
|
@ -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'
|
Loading…
Reference in a new issue