21 lines
442 B
Plaintext
Raw Normal View History

2017-12-21 09:02:37 +10:00
#!/usr/bin/with-contenv bash
mkdir -p /tmp/nginx/body \
/var/log/nginx \
2018-08-21 08:33:51 +10:00
/data/nginx \
/data/custom_ssl \
2018-08-21 08:33:51 +10:00
/data/logs \
/data/access \
/data/nginx/proxy_host \
/data/nginx/redirection_host \
/data/nginx/stream \
/data/nginx/dead_host \
/data/nginx/temp \
/var/lib/nginx/cache/public \
/var/lib/nginx/cache/private
2018-07-31 15:18:09 +10:00
touch /var/log/nginx/error.log && chmod 777 /var/log/nginx/error.log
2017-12-21 09:02:37 +10:00
chown root /tmp/nginx
2018-07-31 15:18:09 +10:00
exec nginx