This repository has been archived on 2020-03-24. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
quay/conf/init/service/nginx/run
2017-02-23 14:38:16 -05:00

10 lines
255 B
Bash
Executable file

#! /bin/bash
echo 'Starting nginx'
NAMESERVER=`cat /etc/resolv.conf | grep "nameserver" | awk '{print $2}' | tr '\n' ' '`
echo "resolver $NAMESERVER valid=10s;" > /conf/nginx/resolver.conf
/usr/sbin/nginx -c /conf/nginx/nginx.conf
echo 'Nginx exited'