delete all root process

This commit is contained in:
Wonderfall committed 2016-09-16 17:08:06 +02:00
1 parent c34874716a
commit 9cbccd93dc
69 files changed
+183 -224

No files matched your search

+1 -1
View File
@@ -121,4 +121,4 @@ LABEL description="nginx built from source." \
openssl="LibreSSL ${LIBRESSL_VERSION}." \
nginx="nginx ${NGINX_VERSION}."
CMD ["/sbin/tini","--","run.sh"]
CMD ["run.sh"]
+1 -2
View File
@@ -1,5 +1,4 @@
#!/bin/sh
touch /var/run/nginx.pid
chown -R $UID:$GID /etc/nginx /var/log/nginx /var/run/nginx.pid /sites-enabled /conf.d /certs /www /tmp
chmod -R 700 /certs
su-exec $UID:$GID nginx
exec su-exec $UID:$GID /sbin/tini -- nginx