Skip to content
Snippets Groups Projects
Commit 30348c7d authored by intrigeri's avatar intrigeri
Browse files

mysql helper bugfix: write yes/no to config file instead of on/off, that are...

mysql helper bugfix: write yes/no to config file instead of on/off, that are not recognized by mysql handler
parent cf1817d0
No related branches found
No related tags found
No related merge requests found
...@@ -30,28 +30,28 @@ do_mysql_user() { ...@@ -30,28 +30,28 @@ do_mysql_user() {
do_mysql_final() { do_mysql_final() {
if [ -z "$_DISABLE_HOTCOPY" ]; then if [ -z "$_DISABLE_HOTCOPY" ]; then
checkBox "mysql action wizard" "check options" \ checkBox "mysql action wizard" "check options" \
"sqldump" "create a backup using mysqldump (more compat)." off \ "sqldump" "create a backup using mysqldump (more compat)." no \
"hotcopy" "create a backup using mysqlhotcopy (faster)." on \ "hotcopy" "create a backup using mysqlhotcopy (faster)." yes \
"compress" "compress the sql output files" on "compress" "compress the sql output files" yes
status=$? status=$?
sqldump="sqldump = off" sqldump="sqldump = no"
hotcopy="hotcopy = off" hotcopy="hotcopy = no"
else else
checkBox "mysql action wizard" "check options" \ checkBox "mysql action wizard" "check options" \
"compress" "compress the sql output files" on "compress" "compress the sql output files" yes
status=$? status=$?
sqldump="sqldump = on" sqldump="sqldump = yes"
hotcopy="hotcopy = off" hotcopy="hotcopy = no"
fi fi
[ $status = 1 ] && return; [ $status = 1 ] && return;
result="$REPLY" result="$REPLY"
compress="compress = off" compress="compress = no"
for opt in $result; do for opt in $result; do
case $opt in case $opt in
'"sqldump"') sqldump="sqldump = on";; '"sqldump"') sqldump="sqldump = yes";;
'"hotcopy"') hotcopy="hotcopy = on";; '"hotcopy"') hotcopy="hotcopy = yes";;
'"compress"') compress="compress = on";; '"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