From 981c4a0abf3e0ce69325937f9880486f3fb75f96 Mon Sep 17 00:00:00 2001 From: Sinisa Veseli <sveseli@aps.anl.gov> Date: Wed, 8 Jul 2015 15:52:20 +0000 Subject: [PATCH] fixed variable issue with destroy db script --- sbin/dm_destroy_db.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/dm_destroy_db.sh b/sbin/dm_destroy_db.sh index f92510f8..f2454dbc 100755 --- a/sbin/dm_destroy_db.sh +++ b/sbin/dm_destroy_db.sh @@ -23,7 +23,6 @@ cd $CURRENT_DIR if [ -z "${DM_ROOT_DIR}" ]; then DM_ROOT_DIR=$MY_DIR/.. fi -DM_RUN_DIR=${DM_INSTALL_DIR}/var/run DM_ENV_FILE=${DM_ROOT_DIR}/setup.sh if [ ! -f ${DM_ENV_FILE} ]; then echo "Environment file ${DM_ENV_FILE} does not exist." @@ -40,6 +39,7 @@ PG_DIR=$DM_SUPPORT_DIR/postgresql/$DM_HOST_ARCH PG_CONTROL_SCRIPT=$DM_ROOT_DIR/etc/init.d/dm-postgresql PG_DATA_DIR=$PG_DIR/data PG_HBA_CONF=$PG_DATA_DIR/pg_hba.conf +DM_RUN_DIR=${DM_INSTALL_DIR}/var/run DB_LOCK_FILE=${DM_RUN_DIR}/${DM_DB_NAME}.db.lock # Use first argument as db name, if provided -- GitLab