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
1d797300
Commit
1d797300
authored
5 years ago
by
Henrik tom Wörden
Browse files
Options
Downloads
Patches
Plain Diff
MAINT: make calling skripts more cwd independent
parent
c908d69b
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
utils/backup.sh
+2
-1
2 additions, 1 deletion
utils/backup.sh
utils/load_settings.sh
+9
-0
9 additions, 0 deletions
utils/load_settings.sh
utils/make_db
+2
-0
2 additions, 0 deletions
utils/make_db
utils/update_sql_procedures.sh
+2
-0
2 additions, 0 deletions
utils/update_sql_procedures.sh
with
15 additions
and
1 deletion
utils/backup.sh
+
2
−
1
View file @
1d797300
...
...
@@ -24,10 +24,11 @@
# Dump a database with all procedures, permissions, structure and data
if
[
-z
"
$UTILSPATH
"
]
;
then
UTILSPATH
=
"
$(
realpath
$(
dirname
$0
))
"
export
UTILSPATH
MAINPATH
=
"
$(
dirname
$UTILSPATH
)
"
export
MAINPATH
fi
# 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.
...
...
This diff is collapsed.
Click to expand it.
utils/load_settings.sh
+
9
−
0
View file @
1d797300
...
...
@@ -23,6 +23,11 @@
# - .config (in the current directory)
# - The file given in ENV_FILE.
if
[
"
$MAINPATH
"
]
;
then
pushd
"
$MAINPATH
"
>
/dev/null
pushed
=
1
fi
if
[[
-r
"config.defaults"
]]
;
then
source
"config.defaults"
fi
...
...
@@ -38,6 +43,10 @@ if [[ -z "$MYSQL_CMD" ]] ; then
exit
1
fi
if
[
$pushed
]
;
then
popd
>
/dev/null
fi
export
MYSQL_CMD
export
MYSQLDUMP_CMD
export
MYSQLADMIN_CMD
...
...
This diff is collapsed.
Click to expand it.
utils/make_db
+
2
−
0
View file @
1d797300
...
...
@@ -29,6 +29,8 @@ INSTALL_SQL_FILE="db_2_0.sql"
if
[
-z
"
$UTILSPATH
"
]
;
then
UTILSPATH
=
"
$(
realpath
$(
dirname
$0
))
"
export
UTILSPATH
MAINPATH
=
"
$(
dirname
$UTILSPATH
)
"
export
MAINPATH
fi
source
$UTILSPATH
/load_settings.sh
...
...
This diff is collapsed.
Click to expand it.
utils/update_sql_procedures.sh
+
2
−
0
View file @
1d797300
...
...
@@ -27,6 +27,8 @@
if
[
-z
"
$UTILSPATH
"
]
;
then
UTILSPATH
=
$(
realpath
"
$(
dirname
$0
)
"
)
export
UTILSPATH
MAINPATH
=
"
$(
dirname
$UTILSPATH
)
"
export
MAINPATH
fi
source
$UTILSPATH
/helpers.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