test Drupal site working on Koality Theme Builder
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.
 
 
 
 
 
 

30 line
376 B

  1. #!/bin/bash
  2. # set up ssmtp
  3. if [[ $SESmailhub ]]; then
  4. cat << EOF > /etc/ssmtp/ssmtp.conf
  5. debug=yes
  6. mailhub=$SESmailhub
  7. Hostname=$HOSTNAME
  8. FromLineOverride=yes
  9. UseSTARTTLS=yes
  10. EOF
  11. fi
  12. if [[ $SESAuthUser ]]; then
  13. cat << EOF >> /etc/ssmtp/ssmtp.conf
  14. $SESAuthUser
  15. EOF
  16. fi
  17. if [[ $SESAuthPass ]]; then
  18. cat << EOF >> /etc/ssmtp/ssmtp.conf
  19. $SESAuthPass
  20. EOF
  21. fi
  22. apache2-foreground