Skip to content

Commit

Permalink
Apache images: Remove the apache pid file when starting. This prevent…
Browse files Browse the repository at this point in the history
…s Apache not starting when a pid file is still present
  • Loading branch information
quartje committed Apr 17, 2024
1 parent fe82b8c commit 5fc70ef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion apache2-shibboleth/bin/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env bash
set +e

# Delete any leftover pid files
rm -f /run/apache2/apache2.pid
# Check and read the user and group env vars set by the user
# Save them for later use as they will be overwritten by the next command
if [[ -v APACHE_RUN_USER ]]; then
Expand Down
3 changes: 2 additions & 1 deletion apache2/bin/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env bash
set +e

# Delete any leftover pid files
rm -f /run/apache2/apache2.pid
# Check and read the user and group env vars set by the user
# Save them for later use as they will be overwritten by the next command
if [[ -v APACHE_RUN_USER ]]; then
Expand Down

0 comments on commit 5fc70ef

Please sign in to comment.