diff --git a/sbin/dm_destroy_db.sh b/sbin/dm_destroy_db.sh index f92510f83fcbaf371f0151f3abd05c38f6201f73..f2454dbcbace40127c0b4d341d296fb6cf4941c2 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