Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-mysqlbackend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-mysqlbackend
Commits
5bc91a64
Commit
5bc91a64
authored
5 years ago
by
Henrik tom Wörden
Browse files
Options
Downloads
Patches
Plain Diff
MAINT: use better code for setting UTILSPATH
parent
43533a78
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
utils/backup.sh
+5
-1
5 additions, 1 deletion
utils/backup.sh
with
5 additions
and
1 deletion
utils/backup.sh
+
5
−
1
View file @
5bc91a64
...
@@ -24,6 +24,11 @@
...
@@ -24,6 +24,11 @@
# Dump a database with all procedures, permissions, structure and data
# Dump a database with all procedures, permissions, structure and data
if
[
-z
"
$UTILSPATH
"
]
;
then
UTILSPATH
=
"
$(
realpath
$(
dirname
$0
))
"
export
UTILSPATH
fi
# The directory which the dump is to be stored to. Do not change it here. Use
# The directory which the dump is to be stored to. Do not change it here. Use
# the --backupdir=./my/dir/ option or an environment variable instead.
# the --backupdir=./my/dir/ option or an environment variable instead.
BACKUPDIR
=
"
${
BACKUPDIR
:-
../backup
}
"
BACKUPDIR
=
"
${
BACKUPDIR
:-
../backup
}
"
...
@@ -58,7 +63,6 @@ backup:
...
@@ -58,7 +63,6 @@ backup:
EOF
EOF
)
)
UTILS_PATH
=
`
dirname
"
$(
realpath
$0
)
"
`
# Load settings from .config and defaults #####################################
# Load settings from .config and defaults #####################################
.
$UTILS_PATH
/load_settings.sh
.
$UTILS_PATH
/load_settings.sh
...
...
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