make nginx log to stdout
This commit is contained in:
parent
a2b750a71e
commit
d402abd69b
|
@ -16,7 +16,10 @@ if [[ "$UBUNTU_ENABLE_SOURCE_MIRRORING" != "false" ]]; then
|
|||
SOURCEOPT="--source"
|
||||
fi
|
||||
|
||||
debmirror \
|
||||
DONE=0
|
||||
|
||||
while [[ $DONE -eq 0 ]]; do
|
||||
debmirror \
|
||||
-a ${UBUNTU_MIRROR_ARCHITECTURES} \
|
||||
-s ${UBUNTU_MIRROR_CATEGORIES} \
|
||||
-h ${UBUNTU_MIRROR_UPSTREAM} \
|
||||
|
@ -28,5 +31,9 @@ debmirror \
|
|||
--progress \
|
||||
--method=http \
|
||||
$DST/ubuntu
|
||||
|
||||
chmod -R a+rX $DST
|
||||
if [[ $? -eq 0 ]]; then
|
||||
DONE=1
|
||||
fi
|
||||
chmod -R a+rX $DST
|
||||
sleep 1
|
||||
done
|
||||
|
|
|
@ -3,11 +3,14 @@ worker_processes auto;
|
|||
|
||||
pid /var/run/nginx.pid;
|
||||
|
||||
error_log /dev/stdout info;
|
||||
|
||||
events {
|
||||
worker_connections 1024;
|
||||
}
|
||||
|
||||
http {
|
||||
access_log /dev/stdout;
|
||||
include /etc/nginx/mime.types;
|
||||
default_type application/octet-stream;
|
||||
|
||||
|
|
Loading…
Reference in New Issue