|
|
@ -1077,13 +1077,13 @@ docker restart "$container_id" |
|
|
|
sleep 2 |
|
|
|
docker restart "$container_id" |
|
|
|
EOF |
|
|
|
return $errlvl |
|
|
|
return 2 |
|
|
|
fi |
|
|
|
warn "Unknown issue with ${DARKYELLOW}$service_name${NORMAL}'s container:" |
|
|
|
echo " ${WHITE}cmd:${NORMAL} docker exec -ti $container_id echo" >&2 |
|
|
|
echo "$out" | prefix " ${DARKGRAY}|${NORMAL} " >&2 |
|
|
|
echo " ${DARKGRAY}..${NORMAL} leaving this as-is." |
|
|
|
return $errlvl |
|
|
|
return 1 |
|
|
|
} |
|
|
|
|
|
|
|
docker:api() { |
|
|
@ -1650,7 +1650,18 @@ cmdline.spec:odoo:cmd:restore:run() { |
|
|
|
opts_load=() |
|
|
|
[ "$opt_neutralize" ] && opts_load+=("--neutralize") |
|
|
|
|
|
|
|
#cmdline.spec:odoo:cmd:restart:run --service "$odoo_service" || exit 1 |
|
|
|
project_name=$(compose:project_name) || exit 1 |
|
|
|
container:health:check-fix:no-matching-entries "${project_name}_${odoo_service}_1" |
|
|
|
case "$?" in |
|
|
|
0) |
|
|
|
debug "Container ${project_name}_${odoo_service}_1 is healthy." |
|
|
|
;; |
|
|
|
1) err "Container ${project_name}_${odoo_service}_1 is not healthy." |
|
|
|
exit 1 |
|
|
|
;; |
|
|
|
2) info "Container ${project_name}_${odoo_service}_1 was fixed." |
|
|
|
;; |
|
|
|
esac |
|
|
|
|
|
|
|
msg_dbname=default |
|
|
|
[ -n "$opt_database" ] && msg_dbname="'$opt_database'" |
|
|
|