Created
April 6, 2016 19:00
-
-
Save 18601673727/0ea43adde6691af201552b42285add7e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
path=/opt/docker/etc/nginx/vhost.conf | |
endpoint="fastcgi_read_timeout" | |
patch="fastcgi_buffer_size 128k;fastcgi_buffers 32 32k;" | |
if grep -q "$patch" $path ; then | |
echo 'already patched, skip!' | |
else | |
echo 'no patch found, now patch' | |
sed -i "/$endpoint/i $patch" $path | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Dockerfile