mirror of
https://github.com/chenasraf/opensnp.org-docker.git
synced 2026-05-18 01:49:07 +00:00
Use Upstart for running postfix
This commit is contained in:
@@ -9,7 +9,7 @@ RUN echo "postfix postfix/main_mailer_type string 'Internet Site'" | debconf-set
|
||||
RUN apt-get install -qy libhiredis-dev postgresql-client-9.3 postfix
|
||||
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||
|
||||
ADD postfix-run /etc/service/postfix/run
|
||||
ADD start_postfix.sh /etc/my_init.d/91_start_postfix.sh
|
||||
|
||||
ADD nginx-http.conf /etc/nginx/conf.d/http.conf
|
||||
ADD nginx-opensnp.org.conf /etc/nginx/sites-enabled/opensnp.org.conf
|
||||
|
||||
12
postfix-run
12
postfix-run
@@ -1,12 +0,0 @@
|
||||
#!/bin/sh
|
||||
exec 1>&2
|
||||
|
||||
daemon_directory=/usr/lib/postfix \
|
||||
command_directory=/usr/sbin \
|
||||
config_directory=/etc/postfix \
|
||||
queue_directory=/var/spool/postfix \
|
||||
mail_owner=postfix \
|
||||
setgid_group=postdrop \
|
||||
/etc/postfix/postfix-script check || exit 1
|
||||
|
||||
exec /usr/lib/postfix/master
|
||||
3
start_postfix.sh
Executable file
3
start_postfix.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
service postfix start
|
||||
Reference in New Issue
Block a user