Skip to content

Commit 9597c17

Browse files
Run symlinker at start before the config enabler
1 parent db37907 commit 9597c17

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/scripts/start_nginx_certbot.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ trap "clean_exit" EXIT
2424
# If the environment variable `DEBUG=1` is set, then this message is printed.
2525
debug "Debug messages are enabled"
2626

27-
# Immediately run 'auto_enable_configs' so that Nginx is in a runnable state
27+
# Immediately symlink files to the correct locations and then run
28+
# 'auto_enable_configs' so that Nginx is in a runnable state
2829
# This will temporarily disable any misconfigured servers.
30+
symlink_user_configs
2931
auto_enable_configs
3032

3133
# Start Nginx without its daemon mode (and save its PID).
@@ -38,7 +40,6 @@ else
3840
nginx -g "daemon off;" &
3941
NGINX_PID=$!
4042
fi
41-
sleep 1
4243

4344
info "Starting the certbot autorenewal service"
4445
# Make sure a renewal interval is set before continuing.

0 commit comments

Comments
 (0)