Inicial
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
NAMESERVER=$(awk '/^nameserver/{print $2; exit}' /etc/resolv.conf)
|
||||
NAMESERVER=${NAMESERVER:-127.0.0.11}
|
||||
|
||||
sed -i "s/__RESOLVER__/$NAMESERVER/" /etc/nginx/conf.d/default.conf
|
||||
|
||||
exec nginx -g "daemon off;"
|
||||
Reference in New Issue
Block a user