Skip to content

Commit

Permalink
Don't fail if user has bind mounted nginx config (#11671)
Browse files Browse the repository at this point in the history
  • Loading branch information
NickM-27 committed Jun 1, 2024
1 parent 758df09 commit 8179278
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docker/main/rootfs/etc/s6-overlay/s6-rc.d/nginx/run
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ function set_worker_processes() {
proc_count=4;
fi

sed -i "s/worker_processes auto;/worker_processes ${proc_count};/" /usr/local/nginx/conf/nginx.conf
# we need to catch any errors because sed will fail if user has bind mounted a custom nginx file
sed -i "s/worker_processes auto;/worker_processes ${proc_count};/" /usr/local/nginx/conf/nginx.conf || true
}

set_worker_processes
Expand Down

0 comments on commit 8179278

Please sign in to comment.