20 lines
421 B
Plaintext
Executable File
20 lines
421 B
Plaintext
Executable File
#!/usr/bin/with-contenv bash
|
|
|
|
mkdir -p /tmp/nginx/body \
|
|
/var/log/nginx \
|
|
/data/nginx \
|
|
/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
|
|
|
|
touch /var/log/nginx/error.log && chmod 777 /var/log/nginx/error.log
|
|
chown root /tmp/nginx
|
|
|
|
exec nginx
|