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 for container in "${to_deploy[@]}"; do
message " $container: deploying..." message " $container: deploying..."
log="$REBUILD_DATA_DIR/$container.log" 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
if $COMPOSE_BIN -f "$DOCKERCOMPOSE_FILE" up -d --no-deps "$container" >> "$log" 2>&1; then message " $container: done"
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 (in" \ error " $container: fail to deploy new container image"
"$(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
View file

@ -7,6 +7,6 @@ Standards-Version: 3.9.6
Package: check-container-upgrade Package: check-container-upgrade
Architecture: all Architecture: all
Depends: ${misc:Depends}, jq, jo Depends: ${misc:Depends}, python3, python3-requests
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.