This repository was archived by the owner on Jun 30, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ if sudo pwd >/dev/null 2>&1; then
3333 export WE_HAVE_SUDO_ACCESS=" true"
3434else
3535 export WE_HAVE_SUDO_ACCESS=" false"
36+ warn " We don't have sudo"
3637fi
3738
3839# ==============================================
7172
7273# -----------------------------------------------
7374# Perform cleanup to support `docker restart`
75+ log " Stopping supervisord to support docker restart..."
7476stop > /dev/null 2>&1 || true
75- rm -f ${LOGS_DIR} /*
76- rm -f ${RUN_DIR} /*
77+
78+ if ! rm -f ${LOGS_DIR} /* ; then
79+ warn " The container has just started yet we already don't have write access to ${LOGS_DIR} /*"
80+ ls -la ${LOGS_DIR} / || true
81+ fi
82+
83+ if ! rm -f ${RUN_DIR} /* ; then
84+ warn " The container has just started yet we already don't have write access to ${RUN_DIR} /*"
85+ ls -la ${RUN_DIR} / || true
86+ fi
7787
7888# ---------------------
7989# Fix/extend ENV vars
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ # Prints debug info with precise time
4+ exec echo " --${SELENIUM_FIRST_NODE_PORT} WARN $( date " +%H:%M:%S:%N" ) $@ "
You can’t perform that action at this time.
0 commit comments