Skip to content

Commit

Permalink
Optimize nginx reloading usage fix 4
Browse files Browse the repository at this point in the history
  • Loading branch information
std-025-02 committed Sep 1, 2024
1 parent f59e6fc commit 09066d0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docker/check_ssl.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

while true; do
sleep 10
Expand Down
2 changes: 1 addition & 1 deletion docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ services:
volumes:
- ./nginx/ssl:/etc/nginx/ssl:ro
- ./certbot/www:/var/www/certbot:ro
command: /bin/sh -c "/usr/share/nginx/html/env.sh && nginx -g \"daemon off;\" & /check_ssl.sh"
command: /bin/bash -c "/usr/share/nginx/html/env.sh && nginx -g \"daemon off;\" & /check_ssl.sh"

ports:
- "0.0.0.0:80:80"
Expand Down
2 changes: 1 addition & 1 deletion docker/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ entrypoint_log() {
fi
}

if [ "$1" = "/bin/sh" ] || [ "$1" = "nginx" ] || [ "$1" = "nginx-debug" ]; then
if [ "$1" = "/bin/bash" ] || [ "$1" = "nginx" ] || [ "$1" = "nginx-debug" ]; then
if /usr/bin/find "/docker-entrypoint.d/" -mindepth 1 -maxdepth 1 -type f -print -quit 2>/dev/null | read v; then
entrypoint_log "$0: /docker-entrypoint.d/ is not empty, will attempt to perform configuration"

Expand Down

0 comments on commit 09066d0

Please sign in to comment.