diff --git a/apps/db_exporter/db_export.sh b/apps/db_exporter/db_export.sh index c7dff778d..4f98a83f2 100644 --- a/apps/db_exporter/db_export.sh +++ b/apps/db_exporter/db_export.sh @@ -8,6 +8,13 @@ if [ -f "./config.sh" ]; then source "./config.sh" # should overwrite previous 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 =====" @@ -34,7 +41,7 @@ function export() { 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[@]} diff --git a/bin/acore-db-export b/bin/acore-db-export index 11b8d6cba..e908f27c3 100755 --- a/bin/acore-db-export +++ b/bin/acore-db-export @@ -2,4 +2,4 @@ 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"