Skip to content
Snippets Groups Projects
Commit 353f60b6 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

usre DB_ADD to check db containe

parent 8e464f7e
No related branches found
No related tags found
1 merge request!22usre DB_ADD to check db containe
...@@ -104,7 +104,7 @@ function _getStatus_docker(){ ...@@ -104,7 +104,7 @@ function _getStatus_docker(){
grep -q "${APP_NAME}-server" <<< "$_out" && DC_WEB_UP=1 grep -q "${APP_NAME}-server" <<< "$_out" && DC_WEB_UP=1
grep -q "${APP_NAME}-db" <<< "$_out" && DC_DB_UP=1 grep -q "${APP_NAME}-db" <<< "$_out" && DC_DB_UP=1
if [ $DC_DB_UP -eq 1 ] && [ ! -d "${DC_DUMP_DIR}" ]; then if [ "$DB_ADD" != "false" ] && [ ! -d "${DC_DUMP_DIR}" ]; then
echo "INFO: creating subdir ${DC_DUMP_DIR} to import/ export databases ..." echo "INFO: creating subdir ${DC_DUMP_DIR} to import/ export databases ..."
mkdir "${DC_DUMP_DIR}" || exit 1 mkdir "${DC_DUMP_DIR}" || exit 1
return return
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment