mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-07 12:51:08 +00:00
fix(Bash/Exporter): fix path + add prompt to prevent wrong usage (#1477)
This commit is contained in:
@@ -8,6 +8,13 @@ if [ -f "./config.sh" ]; then
|
|||||||
source "./config.sh" # should overwrite previous
|
source "./config.sh" # should overwrite previous
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "This is a dev-only procedure to export the DB into the SQL base files. All base files will be overwritten."
|
||||||
|
read -p "Are you sure you want to continue (y/N)? " choice
|
||||||
|
case "$choice" in
|
||||||
|
y|Y ) echo "Exporting the DB into the SQL base files...";;
|
||||||
|
* ) return;;
|
||||||
|
esac
|
||||||
|
|
||||||
echo "===== STARTING PROCESS ====="
|
echo "===== STARTING PROCESS ====="
|
||||||
|
|
||||||
|
|
||||||
@@ -34,7 +41,7 @@ function export() {
|
|||||||
base_name=${!var_base_name}
|
base_name=${!var_base_name}
|
||||||
|
|
||||||
|
|
||||||
bash $AC_PATH_MODULES"/drassil/mysql-tools/mysql-tools" dump "" $base_name "" "$base_conf"
|
bash $AC_PATH_DEPS"/drassil/mysql-tools/mysql-tools" dump "" $base_name "" "$base_conf"
|
||||||
}
|
}
|
||||||
|
|
||||||
for db in ${DATABASES[@]}
|
for db in ${DATABASES[@]}
|
||||||
|
|||||||
@@ -2,4 +2,4 @@
|
|||||||
|
|
||||||
CUR_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
CUR_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
|
||||||
source "$CUR_PATH/../apps/db_exporter/db_exporter.sh"
|
source "$CUR_PATH/../apps/db_exporter/db_export.sh"
|
||||||
|
|||||||
Reference in New Issue
Block a user