Permalink
Browse files

set service_binary.

  • Loading branch information...
1 parent 117b3d3 commit 9de714d41ef42167f0c1e4c7c68e97b3536766b8 @wayneeseguin wayneeseguin committed Oct 27, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 nginx/shell/functions
View
4 nginx/shell/functions
@@ -97,6 +97,7 @@ nginx_preconfigure()
trace_filter nginx || set -o xtrace
typeset -ga configure_flags config_dirs nginx_dirs nginx_files
typeset -g master_pid service_binary
+
# TODO: Allow overriding of these parameters via cli
# These defaults may be overridden also by the nginx configuration files.
configure_flags=(
@@ -149,6 +150,7 @@ nginx_initialize()
master_pid="$(ps auxww | awk '/[n]ginx: master/{print $2}' | head -1)"
service_flags=( -c "${service_config_path}/nginx.conf" )
+ service_binary="${install_path}/sbin/nginx"
}
# Hook after installation of nginx package
@@ -244,7 +246,7 @@ nginx_service_setup()
for template in "${templates[@]}"
do
- templates install "nginx/${template}" \
+ template install "nginx/${template}" \
to "${install_path}/etc/nginx/conf/${template}" \
mode 0644 \
owner "${service_user}"

0 comments on commit 9de714d

Please sign in to comment.