ATTACH_ONLY=""
DETACH_ONLY=""
CONFIRM_ATTACH=""
+NO_DETACH_SLEEP=""
# if the script exits early, SUCCESS will be left as 0,
# which is our sign to warn the user.
function inspect_params {
+ if [ -n "$NO_DETACH_SLEEP" ]; then
+ DETACH_SLEEP=0;
+ fi
+
# no need to detach the brick when not restarting services
if [ -n "$STAFF_CLIENT_ONLY" -o -n "$WEB_ONLY" \
-o -n "$START_ONLY" -o -n "$ATTACH_ONLY" ]; then
trap on_exit EXIT;
-while getopts "t:b:r:s:i:f:pagnwchxoklmuv" opt; do
+while getopts "t:b:r:s:i:f:pagnwchxoklmuvd" opt; do
case $opt in
a) REATTACH="YES";;
b) GIT_BRANCH="$OPTARG";;
c) REBUILD="YES";;
+ d) NO_DETACH_SLEEP="YES";;
f) START_SLEEP="$OPTARG";;
g) CONFIRM_ATTACH="YES";;
i) CLIENT_SERIES_ID="$OPTARG";;