2017-12-20 18:02:37 -05:00
|
|
|
#!/usr/bin/with-contenv bash
|
|
|
|
|
2018-08-02 05:48:47 -04:00
|
|
|
mkdir -p /tmp/nginx/body \
|
|
|
|
/var/log/nginx \
|
2018-07-31 01:18:09 -04:00
|
|
|
/data/{nginx,logs,access} \
|
2018-08-01 07:18:17 -04:00
|
|
|
/data/nginx/{proxy_host,redirection_host,stream,dead_host} \
|
2018-07-31 01:18:09 -04:00
|
|
|
/var/lib/nginx/cache/{public,private}
|
|
|
|
|
2018-08-02 05:48:47 -04:00
|
|
|
touch /var/log/nginx/error.log && chmod 777 /var/log/nginx/error.log
|
2017-12-20 18:02:37 -05:00
|
|
|
chown root /tmp/nginx
|
2018-07-31 01:18:09 -04:00
|
|
|
|
2018-08-02 05:48:47 -04:00
|
|
|
exec nginx
|