Skip to content
Snippets Groups Projects
Commit 981c4a0a authored by sveseli's avatar sveseli
Browse files

fixed variable issue with destroy db script

parent 4a126a60
No related branches found
No related tags found
No related merge requests found
...@@ -23,7 +23,6 @@ cd $CURRENT_DIR ...@@ -23,7 +23,6 @@ cd $CURRENT_DIR
if [ -z "${DM_ROOT_DIR}" ]; then if [ -z "${DM_ROOT_DIR}" ]; then
DM_ROOT_DIR=$MY_DIR/.. DM_ROOT_DIR=$MY_DIR/..
fi fi
DM_RUN_DIR=${DM_INSTALL_DIR}/var/run
DM_ENV_FILE=${DM_ROOT_DIR}/setup.sh DM_ENV_FILE=${DM_ROOT_DIR}/setup.sh
if [ ! -f ${DM_ENV_FILE} ]; then if [ ! -f ${DM_ENV_FILE} ]; then
echo "Environment file ${DM_ENV_FILE} does not exist." echo "Environment file ${DM_ENV_FILE} does not exist."
...@@ -40,6 +39,7 @@ PG_DIR=$DM_SUPPORT_DIR/postgresql/$DM_HOST_ARCH ...@@ -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_CONTROL_SCRIPT=$DM_ROOT_DIR/etc/init.d/dm-postgresql
PG_DATA_DIR=$PG_DIR/data PG_DATA_DIR=$PG_DIR/data
PG_HBA_CONF=$PG_DATA_DIR/pg_hba.conf 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 DB_LOCK_FILE=${DM_RUN_DIR}/${DM_DB_NAME}.db.lock
# Use first argument as db name, if provided # Use first argument as db name, if provided
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment