Skip to content

Commit 4c579b1

Browse files
bugfix
1 parent f408f68 commit 4c579b1

2 files changed

Lines changed: 16 additions & 4 deletions

File tree

automysqlbackup

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -458,10 +458,17 @@ parse_configuration () {
458458
opt_dbstatus=( '--status' )
459459

460460
[[ "${CONFIG_mysql_dump_usessl}" = "yes" ]] && {
461-
opt=( "${opt[@]}" '--ssl-mode=PREFERRED' )
462-
mysql_opt=( "${mysql_opt[@]}" '--ssl-mode=PREFERRED' )
463-
opt_fullschema=( "${opt_fullschema[@]}" '--ssl-mode=PREFERRED' )
464-
opt_dbstatus=( "${opt_dbstatus[@]}" '--ssl-mode=PREFERRED' )
461+
if [[ "${CONFIG_mysql8}" = "yes" ]]; then
462+
opt=( "${opt[@]}" '--ssl-mode=PREFERRED' )
463+
mysql_opt=( "${mysql_opt[@]}" '--ssl-mode=PREFERRED' )
464+
opt_fullschema=( "${opt_fullschema[@]}" '--ssl-mode=PREFERRED' )
465+
opt_dbstatus=( "${opt_dbstatus[@]}" '--ssl-mode=PREFERRED' )
466+
else
467+
opt=( "${opt[@]}" '--ssl' )
468+
mysql_opt=( "${mysql_opt[@]}" '--ssl' )
469+
opt_fullschema=( "${opt_fullschema[@]}" '--ssl' )
470+
opt_dbstatus=( "${opt_dbstatus[@]}" '--ssl' )
471+
fi
465472
}
466473
[[ "${CONFIG_mysql_dump_master_data}" ]] && (( ${CONFIG_mysql_dump_master_data} == 1 || ${CONFIG_mysql_dump_master_data} == 2 )) && { opt=( "${opt[@]}" "--master-data=${CONFIG_mysql_dump_master_data}" );}
467474
[[ "${CONFIG_mysql_dump_single_transaction}" = "yes" ]] && {

automysqlbackup.conf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414

1515
# Basic Settings
1616

17+
# mysql8 or newer? or not?
18+
19+
#CONFIG_mysql8='yes'
20+
1721
# available as of MySQL 5.6.6 you can use stored encrypted authentication credentials
1822
# see: http://dev.mysql.com/doc/refman/5.6/en/mysql-config-editor.html
1923

@@ -81,6 +85,7 @@
8185

8286
# Advanced Settings
8387

88+
8489
# Rotation Settings
8590

8691
# Which day do you want monthly backups? (01 to 31)

0 commit comments

Comments
 (0)