Compare commits
2 commits
Author | SHA1 | Date | |
---|---|---|---|
|
45b7c3f3fa | ||
|
73ebd4cddb |
2 changed files with 6 additions and 4 deletions
|
@ -319,12 +319,14 @@ if [[ $DEPLOY_CRON -eq 1 ]]; then
|
||||||
for container in "${to_deploy[@]}"; do
|
for container in "${to_deploy[@]}"; do
|
||||||
message " $container: deploying..."
|
message " $container: deploying..."
|
||||||
log="$REBUILD_DATA_DIR/$container.log"
|
log="$REBUILD_DATA_DIR/$container.log"
|
||||||
if $COMPOSE_BIN -f "$DOCKERCOMPOSE_FILE" up -d --no-deps "$container" > "$log" 2>&1; then
|
start_time=$(current_time)
|
||||||
message " $container: done"
|
if $COMPOSE_BIN -f "$DOCKERCOMPOSE_FILE" up -d --no-deps "$container" >> "$log" 2>&1; then
|
||||||
|
message " $container: done (in $(format_duration "$(( $(current_time)-start_time ))"))"
|
||||||
update_rebuild_status -d "$container"
|
update_rebuild_status -d "$container"
|
||||||
rm -f "$log"
|
rm -f "$log"
|
||||||
else
|
else
|
||||||
error " $container: fail to deploy new container image"
|
error " $container: fail to deploy new container image (in" \
|
||||||
|
"$(format_duration "$(( $(current_time)-start_time ))"), see log: $log)"
|
||||||
update_rebuild_status "$container" "error=fail to deploy new container image"
|
update_rebuild_status "$container" "error=fail to deploy new container image"
|
||||||
error=1
|
error=1
|
||||||
fi
|
fi
|
||||||
|
|
2
debian/control
vendored
2
debian/control
vendored
|
@ -7,6 +7,6 @@ Standards-Version: 3.9.6
|
||||||
|
|
||||||
Package: check-container-upgrade
|
Package: check-container-upgrade
|
||||||
Architecture: all
|
Architecture: all
|
||||||
Depends: ${misc:Depends}, python3, python3-requests
|
Depends: ${misc:Depends}, jq, jo
|
||||||
Description: Monitoring plugin to check Postgres Streaming replication state
|
Description: Monitoring plugin to check Postgres Streaming replication state
|
||||||
This Icinga/Nagios check plugin permit to check Postgres Streaming replication state.
|
This Icinga/Nagios check plugin permit to check Postgres Streaming replication state.
|
||||||
|
|
Loading…
Reference in a new issue