Skip to content
Snippets Groups Projects

usre DB_ADD to check db containe

Merged Hahn Axel (hahn) requested to merge detect-rootless-docker into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -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
Loading