mirror of
https://git.myvelabs.com/lab/archlinux.git
synced 2026-08-16 16:14:27 +00:00
Fix some sed syntaxes
This commit is contained in:
parent
1dcc048658
commit
6a2797e5e4
1 changed files with 8 additions and 6 deletions
14
homelab.sh
14
homelab.sh
|
|
@ -1676,10 +1676,11 @@ sshd
|
|||
|
||||
# Nginx
|
||||
sed '/^http {/a\
|
||||
include http_redirect;\
|
||||
include conf.d/\*.conf;\n\
|
||||
include http_redirect;\n\
|
||||
include conf.d/\*.conf;\
|
||||
include local.conf.d/\*.conf;\n\
|
||||
types_hash_max_size 4096;\
|
||||
server_names_hash_bucket_size 128;\n
|
||||
server_names_hash_bucket_size 128;\n\
|
||||
proxy_headers_hash_max_size 1024;\
|
||||
proxy_headers_hash_bucket_size 128;\n' \
|
||||
-i /etc/nginx/nginx.conf
|
||||
|
|
@ -1750,10 +1751,11 @@ install /dev/stdin /opt/local/hooks/nginx <<- 'hook'
|
|||
if [ -f /etc/nginx/nginx.conf.pacnew ]
|
||||
then
|
||||
sed '/^http {/a\
|
||||
include http_redirect;\
|
||||
include conf.d/\*.conf;\n\
|
||||
include http_redirect;\n\
|
||||
include conf.d/\*.conf;\
|
||||
include local.conf.d/\*.conf;\n\
|
||||
types_hash_max_size 4096;\
|
||||
server_names_hash_bucket_size 128;\n
|
||||
server_names_hash_bucket_size 128;\n\
|
||||
proxy_headers_hash_max_size 1024;\
|
||||
proxy_headers_hash_bucket_size 128;\n' \
|
||||
-i /etc/nginx/nginx.conf.pacnew
|
||||
|
|
|
|||
Loading…
Reference in a new issue