Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dm-docs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hammonds
dm-docs
Commits
981c4a0a
Commit
981c4a0a
authored
9 years ago
by
sveseli
Browse files
Options
Downloads
Patches
Plain Diff
fixed variable issue with destroy db script
parent
4a126a60
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sbin/dm_destroy_db.sh
+1
-1
1 addition, 1 deletion
sbin/dm_destroy_db.sh
with
1 addition
and
1 deletion
sbin/dm_destroy_db.sh
+
1
−
1
View file @
981c4a0a
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment