Skip to content
Snippets Groups Projects
Commit ab8d5a3a authored by Matthias Blümel's avatar Matthias Blümel
Browse files

Merge branch 'fix_11272' into 'master'

Fix ninjahelper bug in the mysql helper

Closes #11272

See merge request riseuplabs/backupninja!23
parents 10b8887b 82c25f4f
No related branches found
No related tags found
No related merge requests found
...@@ -56,15 +56,15 @@ do_mysql_user() { ...@@ -56,15 +56,15 @@ do_mysql_user() {
do_mysql_final() { do_mysql_final() {
if [ -z "$_DISABLE_HOTCOPY" ]; then if [ -z "$_DISABLE_HOTCOPY" ]; then
checkBox "$mysql_title" "check options" \ checkBox "$mysql_title" "check options" \
"sqldump" "create a backup using mysqldump (more compat)." no \ "sqldump" "create a backup using mysqldump (more compat)." off \
"hotcopy" "create a backup using mysqlhotcopy (faster)." yes \ "hotcopy" "create a backup using mysqlhotcopy (faster)." on \
"compress" "compress the sql output files" yes "compress" "compress the sql output files" on
status=$? status=$?
sqldump="sqldump = no" sqldump="sqldump = no"
hotcopy="hotcopy = no" hotcopy="hotcopy = no"
else else
checkBox "$mysql_title" "check options" \ checkBox "$mysql_title" "check options" \
"compress" "compress the sql output files" yes "compress" "compress the sql output files" on
status=$? status=$?
sqldump="sqldump = yes" sqldump="sqldump = yes"
hotcopy="hotcopy = no" hotcopy="hotcopy = no"
...@@ -75,9 +75,9 @@ do_mysql_final() { ...@@ -75,9 +75,9 @@ do_mysql_final() {
compress="compress = no" compress="compress = no"
for opt in $result; do for opt in $result; do
case $opt in case $opt in
'"sqldump"') sqldump="sqldump = yes";; 'sqldump') sqldump="sqldump = yes";;
'"hotcopy"') hotcopy="hotcopy = yes";; 'hotcopy') hotcopy="hotcopy = yes";;
'"compress"') compress="compress = yes";; 'compress') compress="compress = yes";;
esac esac
done done
get_next_filename $configdirectory/20.mysql get_next_filename $configdirectory/20.mysql
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment