Skip to content

Commit

Permalink
Release 5.17.2 - See CHANGELOG.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tiredofit committed Mar 3, 2022
1 parent b4b535b commit 4bfa0f4
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 5.17.2 2022-03-02 <dave at tiredofit dot ca>

### Added
- Add NGINX_POST_INIT_COMMAND to execute before nginx process starts


## 5.17.1 2022-03-02 <dave at tiredofit dot ca>

### Added
Expand Down
10 changes: 10 additions & 0 deletions install/etc/cont-init.d/10-nginx
Original file line number Diff line number Diff line change
Expand Up @@ -483,4 +483,14 @@ if [ -n "${NGINX_POST_INIT_SCRIPT}" ] ; then
done
fi

if [ -n "${NGINX_POST_INIT_COMMAND}" ] ; then
print_debug "Found Post Init Command"
post_commands=$(echo "${NGINX_POST_INIT_COMMAND}" | tr "," "\n")
for post_command in $post_commands
do
print_debug "Executing post init command '${post_command}'"
"${post_command}"
done
fi

liftoff

0 comments on commit 4bfa0f4

Please sign in to comment.