Skip to content
Snippets Groups Projects
Commit f84e6d98 authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

MAINT: there were MYSQLDUMP_CMD and CMD_MYSQL_DUMP; remove one

parent b2da1f54
No related branches found
No related tags found
No related merge requests found
...@@ -46,7 +46,7 @@ function backup { ...@@ -46,7 +46,7 @@ function backup {
failure "dumpfile already exists." failure "dumpfile already exists."
fi fi
echo "Dumping database $NARG_NAME to $NARG_FILE ... " echo "Dumping database $NARG_NAME to $NARG_FILE ... "
$CMD_MYSQL_DUMP $MYSQL_CONNECTION_NO_DB $* --opt --default-character-set=utf8 --routines $NARG_NAME > $NARG_FILE $MYSQLDUMP_CMD $MYSQL_CONNECTION_NO_DB $* --opt --default-character-set=utf8 --routines $NARG_NAME > $NARG_FILE
success success
} }
......
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
# ** end header # ** end header
# #
#header for patch scripts #header for patch scripts
CMD_MYSQL_DUMP=mysqldump
USAGE="$1 [ --env=ENV_FILE ] [ --patch=PATCH ] [ --backupdir=BACKUPDIR ]\n\n" USAGE="$1 [ --env=ENV_FILE ] [ --patch=PATCH ] [ --backupdir=BACKUPDIR ]\n\n"
CMD_OPTIONS=cat <<EOF CMD_OPTIONS=cat <<EOF
options: options:
...@@ -160,7 +159,7 @@ function update_version { ...@@ -160,7 +159,7 @@ function update_version {
} }
function dump_table { function dump_table {
$CMD_MYSQL_DUMP $MYSQL_CONNECTION_NO_DB $DATABASE_NAME $1 \ $MYSQLDUMP_CMD $MYSQL_CONNECTION_NO_DB $DATABASE_NAME $1 \
> ${DATABASE_NAME}.${1}.${OLD_VERSION}.dump.sql > ${DATABASE_NAME}.${1}.${OLD_VERSION}.dump.sql
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment