File tree 1 file changed +2
-2
lines changed
cookbooks/ey-mysql/attributes
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1
1
lock_major_version = `[ -f "/db/.lock_db_version" ] && grep -E -o '^[0-9]+\. [0-9]+' /db/.lock_db_version `
2
2
db_stack = lock_major_version == "" ? attribute [ "dna" ] [ "engineyard" ] [ "environment" ] [ "db_stack_name" ] : "mysql#{ lock_major_version . gsub ( /\. / , '_' ) . strip } "
3
3
4
- default [ "latest_version_57" ] = `apt-cache madison percona-server-common-5.7 |awk '{print $3'} | tail -1` . split ( "-" ) [ 0 ]
5
- default [ "latest_version_80" ] = `apt-cache madison percona-server-common |awk '{print $3'} | tail -1` . split ( "-" ) [ 0 ]
4
+ default [ "latest_version_57" ] = `apt-cache madison percona-server-common-5.7 | sort -V | awk '{print $3'} | tail -1` . split ( "-" ) [ 0 ]
5
+ default [ "latest_version_80" ] = `apt-cache madison percona-server-common | sort -V | awk '{print $3'} | tail -1` . split ( "-" ) [ 0 ]
6
6
7
7
major_version = ""
8
8
custom_version = fetch_env_var ( node , "EY_MYSQL_VERSION" , nil )
You can’t perform that action at this time.
0 commit comments