Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
digibib
koha-docker
Commits
930a284f
Commit
930a284f
authored
Jun 14, 2018
by
Benjamin Rokseth
Browse files
Fix entrypoint mysql test again
parent
6451f377
Changes
1
Hide whitespace changes
Inline
Side-by-side
docker-entrypoint.sh
View file @
930a284f
...
...
@@ -14,8 +14,12 @@ echo "Setting up supervisord ..."
envsubst < /templates/global/supervisord.conf.tmpl
>
/etc/supervisor/conf.d/supervisord.conf
echo
"Mysql server setup ..."
if
[
[
"
$KOHA_DBHOST
"
!=
"localhost"
&&
ping
-c
1
-W
1
$KOHA_DBHOST
]]
;
then
if
[
"
$KOHA_DBHOST
"
!=
"localhost"
]
;
then
printf
"Using linked mysql container
$KOHA_DBHOST
\n
"
if
!
ping
-c
1
-W
1
$KOHA_DBHOST
;
then
echo
"ERROR: Could not connect to remote mysql
$KOHA_DBHOST
"
exit
1
fi
else
printf
"No linked mysql or unable to connect to linked mysql
$KOHA_DBHOST
\n
-- initializing local mysql ...
\n
"
/etc/init.d/mysql start
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment