-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathentrypoint.sh
More file actions
executable file
·48 lines (35 loc) · 905 Bytes
/
entrypoint.sh
File metadata and controls
executable file
·48 lines (35 loc) · 905 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/bash
if [ -v SMTP_ROOT ]
then
echo "root=${SMTP_ROOT}" >> /etc/ssmtp/ssmtp.conf
fi
if [ -v SMTP_MAILHUB ]
then
echo "mailhub=${SMTP_MAILHUB}" >> /etc/ssmtp/ssmtp.conf
fi
if [ -v SMTP_EMAIL ]
then
echo "AuthUser=${SMTP_EMAIL}" >> /etc/ssmtp/ssmtp.conf
fi
if [ -v SMTP_PASSWORD ]
then
echo "AuthPass=${SMTP_PASSWORD}" >> /etc/ssmtp/ssmtp.conf
fi
if [ -v SMTP_DOMAIN ]
then
echo "FromLineOverride=yes" >> /etc/ssmtp/ssmtp.conf
echo "rewriteDomain=${SMTP_DOMAIN}" >> /etc/ssmtp/ssmtp.conf
fi
if [ ! -v SMTP_NOTLS ]
then
echo "UseTLS=YES" >> /etc/ssmtp/ssmtp.conf
echo "UseSTARTTLS=YES" >> /etc/ssmtp/ssmtp.conf
fi
# Set up php sendmail config
echo "sendmail_path=sendmail -i -t" >> /usr/local/etc/php/conf.d/php-sendmail.ini
if [ ! -v COMPOSER_NO_INSTALL ]
then
eval "composer install --prefer-source --no-interaction"
fi
echo "baby poo"
exec "php-fpm"