Move nginx to root directory
This commit is contained in:
parent
cf2ab5f5f7
commit
2139ee85e7
53 changed files with 666 additions and 1733 deletions
8
rootfs/ingress-controller/clean-nginx-conf.sh
Executable file
8
rootfs/ingress-controller/clean-nginx-conf.sh
Executable file
|
|
@ -0,0 +1,8 @@
|
|||
#!/bin/bash
|
||||
|
||||
# This script removes consecutive empty lines in nginx.conf
|
||||
# Using sed is more simple than using a go regex
|
||||
|
||||
# first sed removes empty lines
|
||||
# second sed command replaces the empty lines
|
||||
sed -e 's/\r//g' | sed -e 's/^ *$/\'$'\n/g' | sed -e '/^$/{N;/^\n$/d;}'
|
||||
Loading…
Add table
Add a link
Reference in a new issue