File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,8 @@ if [ "$1" = 'mysqld' -a -z "$wantHelp" ]; then
109109 " $@ " --initialize-insecure
110110 echo ' Database initialized'
111111
112- if command -v mysql_ssl_rsa_setup > /dev/null && [ ! -e " $DATADIR /server-key.pem" ]; then
112+ sslEnabled=" $( _get_config ' ssl' " $@ " ) "
113+ if [ " $sslEnabled " = ' TRUE' ] && command -v mysql_ssl_rsa_setup > /dev/null && [ ! -e " $DATADIR /server-key.pem" ]; then
113114 # https://github.com/mysql/mysql-server/blob/23032807537d8dd8ee4ec1c4d40f0633cd4e12f9/packaging/deb-in/extra/mysql-systemd-start#L81-L84
114115 echo ' Initializing certificates'
115116 mysql_ssl_rsa_setup --datadir=" $DATADIR "
Original file line number Diff line number Diff line change @@ -111,7 +111,8 @@ if [ "$1" = 'mysqld' -a -z "$wantHelp" ]; then
111111 " $@ " --initialize-insecure
112112 echo ' Database initialized'
113113
114- if command -v mysql_ssl_rsa_setup > /dev/null && [ ! -e " $DATADIR /server-key.pem" ]; then
114+ sslEnabled=" $( _get_config ' ssl' " $@ " ) "
115+ if [ " $sslEnabled " = ' TRUE' ] && command -v mysql_ssl_rsa_setup > /dev/null && [ ! -e " $DATADIR /server-key.pem" ]; then
115116 # https://github.com/mysql/mysql-server/blob/23032807537d8dd8ee4ec1c4d40f0633cd4e12f9/packaging/deb-in/extra/mysql-systemd-start#L81-L84
116117 echo ' Initializing certificates'
117118 mysql_ssl_rsa_setup --datadir=" $DATADIR "
You can’t perform that action at this time.
0 commit comments