Compare commits

..

No commits in common. "main" and "2024.7.1" have entirely different histories.

2 changed files with 4 additions and 6 deletions

View file

@ -319,14 +319,12 @@ if [[ $DEPLOY_CRON -eq 1 ]]; then
for container in "${to_deploy[@]}"; do
message " $container: deploying..."
log="$REBUILD_DATA_DIR/$container.log"
start_time=$(current_time)
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 ))"))"
if $COMPOSE_BIN -f "$DOCKERCOMPOSE_FILE" up -d --no-deps "$container" > "$log" 2>&1; then
message " $container: done"
update_rebuild_status -d "$container"
rm -f "$log"
else
error " $container: fail to deploy new container image (in" \
"$(format_duration "$(( $(current_time)-start_time ))"), see log: $log)"
error " $container: fail to deploy new container image"
update_rebuild_status "$container" "error=fail to deploy new container image"
error=1
fi

2
debian/control vendored
View file

@ -7,6 +7,6 @@ Standards-Version: 3.9.6
Package: check-container-upgrade
Architecture: all
Depends: ${misc:Depends}, jq, jo
Depends: ${misc:Depends}, python3, python3-requests
Description: Monitoring plugin to check Postgres Streaming replication state
This Icinga/Nagios check plugin permit to check Postgres Streaming replication state.