File tree 2 files changed +4
-2
lines changed
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
109
109
" $@ " --initialize-insecure
110
110
echo ' Database initialized'
111
111
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
113
114
# https://github.com/mysql/mysql-server/blob/23032807537d8dd8ee4ec1c4d40f0633cd4e12f9/packaging/deb-in/extra/mysql-systemd-start#L81-L84
114
115
echo ' Initializing certificates'
115
116
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
111
111
" $@ " --initialize-insecure
112
112
echo ' Database initialized'
113
113
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
115
116
# https://github.com/mysql/mysql-server/blob/23032807537d8dd8ee4ec1c4d40f0633cd4e12f9/packaging/deb-in/extra/mysql-systemd-start#L81-L84
116
117
echo ' Initializing certificates'
117
118
mysql_ssl_rsa_setup --datadir=" $DATADIR "
You can’t perform that action at this time.
0 commit comments