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
fe57ce67
Verified
Commit
fe57ce67
authored
5 years ago
by
Timm Fitschen
Browse files
Options
Downloads
Patches
Plain Diff
WIP: pipeline
parent
c4ea589d
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
patches/utils/patch_header.sh
+14
-6
14 additions, 6 deletions
patches/utils/patch_header.sh
update_sql_procedures.sh
+1
-1
1 addition, 1 deletion
update_sql_procedures.sh
with
15 additions
and
7 deletions
patches/utils/patch_header.sh
+
14
−
6
View file @
fe57ce67
...
...
@@ -102,7 +102,15 @@ while test $# -gt 0; do
done
echo
"HERE header1"
[[
-n
"
$ENV_FILE
"
]]
&&
source
"
$ENV_FILE
"
if
[
-n
"
$ENV_FILE
"
]
;
then
if
[
-f
"
$ENV_FILE
"
]
;
then
.
"
$ENV_FILE
"
;
else
echo
"
$ENV_FILE
does not exist"
exit
1
fi
fi
echo
"HERE header2"
if
[[
-z
"
$DATABASE_NAME
"
&&
-z
"
$MYSQL_CONNECTION
"
]]
...
...
@@ -111,24 +119,24 @@ then
exit
1
fi
if
[
"
$LOGIN_PATH
"
]
;
then
if
[
-n
"
$LOGIN_PATH
"
]
;
then
MYSQL_CONNECTION
=
"--login-path=
$LOGIN_PATH
"
MYSQL_CONNECTION_NO_DB
=
"
$MYSQL_CONNECTION
"
MYSQL_CONNECTION
=
"
$MYSQL_CONNECTION
--database=
$DATABASE_NAME
"
elif
[
[
-z
"
$MYSQL_CONNECTION
"
]
]
;
then
elif
[
-z
"
$MYSQL_CONNECTION
"
]
;
then
MYSQL_CONNECTION
=
""
if
[
"
$DATABASE_USER
"
]
if
[
-n
"
$DATABASE_USER
"
]
then
MYSQL_CONNECTION
=
"--user=
$DATABASE_USER
"
fi
if
[
"
$DATABASE_USER_PW
"
]
if
[
-n
"
$DATABASE_USER_PW
"
]
then
MYSQL_CONNECTION
=
"
$MYSQL_CONNECTION
--password=
$DATABASE_USER_PW
"
fi
if
[[
"
$MYSQL_HOST
"
&&
(
"
$MYSQL_HOST
"
!=
"localhost"
)
]]
;
then
MYSQL_CONNECTION
=
"
$MYSQL_CONNECTION
--host=
$MYSQL_HOST
"
if
[
"
$MYSQL_PORT
"
]
;
then
if
[
-n
"
$MYSQL_PORT
"
]
;
then
MYSQL_CONNECTION
=
"
$MYSQL_CONNECTION
--port=
$MYSQL_PORT
"
fi
fi
...
...
This diff is collapsed.
Click to expand it.
update_sql_procedures.sh
+
1
−
1
View file @
fe57ce67
...
...
@@ -26,7 +26,7 @@
source
patches/utils/patch_header.sh
echo
-n
"updating rules ... "
echo
-n
"updating rules ...
$CMD_MYSQL
$MYSQL_CONNECTION
"
set
-e
mysql_execute
"
$(
sed
s/db_2_0/
$DATABASE_NAME
/g rules.sql
)
"
...
...
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