chore: run shfmt

This commit is contained in:
Jose Diaz-Gonzalez
2026-05-10 21:42:35 -04:00
parent 2a4393a63a
commit 2c274217de
3 changed files with 12 additions and 12 deletions
@@ -11,8 +11,8 @@ fi
echo "Done restoring dokku apps."
while ! (echo > /dev/tcp/127.0.0.1/22) >/dev/null 2>&1; do sleep 1; done
while ! (echo > /dev/tcp/127.0.0.1/80) >/dev/null 2>&1; do sleep 1; done
while ! (echo >/dev/tcp/127.0.0.1/22) >/dev/null 2>&1; do sleep 1; done
while ! (echo >/dev/tcp/127.0.0.1/80) >/dev/null 2>&1; do sleep 1; done
touch /var/run/dokku/ready
echo "Dokku is ready."
+4 -4
View File
@@ -38,7 +38,7 @@ start-container() {
wait-for-catchall-vhost() {
local deadline=$((SECONDS + 30))
while (( SECONDS < deadline )); do
while ((SECONDS < deadline)); do
if docker exec "$CONTAINER_NAME" test -f /etc/nginx/conf.d/00-default-vhost.conf; then
return 0
fi
@@ -53,7 +53,7 @@ plugins/nginx-vhosts/templates/default-site.conf. Rebuild the deb before running
wait-for-healthy() {
local deadline=$((SECONDS + START_TIMEOUT_SECONDS))
local status
while (( SECONDS < deadline )); do
while ((SECONDS < deadline)); do
status=$(docker inspect --format='{{.State.Health.Status}}' "$CONTAINER_NAME" 2>/dev/null || echo "missing")
if [[ "$status" == "healthy" ]]; then
log-info "Container reached healthy status"
@@ -95,14 +95,14 @@ assert-unhealthy-after-sentinel-removed() {
local exit_code=0
docker exec "$CONTAINER_NAME" curl -fsS http://127.0.0.1:18080/_dokku/health >/dev/null 2>&1 || exit_code=$?
if (( exit_code == 0 )); then
if ((exit_code == 0)); then
log-fail "Health endpoint still returned success after the readiness sentinel was removed"
fi
log-info "Waiting for docker to flip the health status to unhealthy"
local deadline=$((SECONDS + UNHEALTHY_TIMEOUT_SECONDS))
local status
while (( SECONDS < deadline )); do
while ((SECONDS < deadline)); do
status=$(docker inspect --format='{{.State.Health.Status}}' "$CONTAINER_NAME" 2>/dev/null || echo "missing")
if [[ "$status" == "unhealthy" ]]; then
log-info "Container flipped to unhealthy"
+6 -6
View File
@@ -26,8 +26,8 @@ DOCKERFILE="${REPO_ROOT}/Dockerfile"
[[ -n "$sshd_line" ]]
[[ -n "$nginx_line" ]]
[[ -n "$touch_line" ]]
(( touch_line > sshd_line ))
(( touch_line > nginx_line ))
((touch_line > sshd_line))
((touch_line > nginx_line))
}
@test "(docker-image) [healthcheck] my_init clears stale sentinel on container boot" {
@@ -43,10 +43,10 @@ DOCKERFILE="${REPO_ROOT}/Dockerfile"
[[ -n "$mkdir_line" ]]
[[ -n "$plugin_line" ]]
[[ -n "$hostname_line" ]]
(( rm_line < plugin_line ))
(( rm_line < hostname_line ))
(( mkdir_line < plugin_line ))
(( mkdir_line < hostname_line ))
((rm_line < plugin_line))
((rm_line < hostname_line))
((mkdir_line < plugin_line))
((mkdir_line < hostname_line))
}
@test "(docker-image) [healthcheck] Dockerfile declares HEALTHCHECK with the expected endpoint" {