You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

run.sh 483B

12345678910111213141516
  1. #! /usr/bin/env sh
  2. sed -e "s/hosts *=.*/hosts = ${POSTGRES_HOST}/g" -i /etc/postfix/pgsql_*
  3. sed -e "s/user *=.*/user = ${POSTGRES_USER}/g" -i /etc/postfix/pgsql_*
  4. sed -e "s/password *=.*/password = ${POSTGRES_PASSWORD}/g" -i /etc/postfix/pgsql_*
  5. sed -e "s/dbname *=.*/dbname = ${POSTGRES_DB}/g" -i /etc/postfix/pgsql_*
  6. postconf -e mydomain="${MAIL_DOMAIN}"
  7. postconf -e myhostname="${MAIL_HOSTNAME}"
  8. service rsyslog start
  9. service postfix start
  10. sleep 3
  11. tail -f /var/log/mail.info