File tree Expand file tree Collapse file tree 16 files changed +51
-25
lines changed Expand file tree Collapse file tree 16 files changed +51
-25
lines changed Original file line number Diff line number Diff line change @@ -41,13 +41,16 @@ touch $CRON_LOG
41
41
echo " cron.* $CRON_LOG " > /etc/rsyslog.d/cron.conf
42
42
service rsyslog start
43
43
44
+ PHP_EXT_DIR=/usr/local/etc/php/conf.d
45
+
44
46
# Configure Sendmail if required
45
47
if [ " $ENABLE_SENDMAIL " == " true" ]; then
48
+ sed -i " s/!SENDMAIL_PATH!/\/usr\/sbin\/sendmail -t -i/" ${PHP_EXT_DIR} /zz-mail.ini
46
49
/etc/init.d/sendmail start
50
+ else
51
+ sed -i " s/!SENDMAIL_PATH!/\" true > \/dev\/null\" /" ${PHP_EXT_DIR} /zz-mail.ini
47
52
fi
48
53
49
- PHP_EXT_DIR=/usr/local/etc/php/conf.d
50
-
51
54
# Substitute in php.ini values
52
55
[ ! -z " ${PHP_MEMORY_LIMIT} " ] && sed -i " s/!PHP_MEMORY_LIMIT!/${PHP_MEMORY_LIMIT} /" ${PHP_EXT_DIR} /zz-magento.ini
53
56
[ ! -z " ${UPLOAD_MAX_FILESIZE} " ] && sed -i " s/!UPLOAD_MAX_FILESIZE!/${UPLOAD_MAX_FILESIZE} /" ${PHP_EXT_DIR} /zz-magento.ini
@@ -64,6 +67,7 @@ if [ -x "$(command -v ${PHP_EXT_COM_ON})" ] && [ ! -z "${PHP_EXTENSIONS}" ]; the
64
67
${PHP_EXT_COM_ON} ${PHP_EXTENSIONS}
65
68
fi
66
69
70
+
67
71
# Configure composer
68
72
[ ! -z " ${COMPOSER_GITHUB_TOKEN} " ] && \
69
73
composer config --global github-oauth.github.com $COMPOSER_GITHUB_TOKEN
Original file line number Diff line number Diff line change 1
1
; Sendmail
2
- sendmail_path =/usr/sbin/sendmail -t -i
2
+ sendmail_path =!SENDMAIL_PATH!
Original file line number Diff line number Diff line change 30
30
# Ensure our Magento directory exists
31
31
mkdir -p $MAGENTO_ROOT
32
32
33
+ PHP_EXT_DIR=/usr/local/etc/php/conf.d
34
+
33
35
# Configure Sendmail if required
34
36
if [ " $ENABLE_SENDMAIL " == " true" ]; then
37
+ sed -i " s/!SENDMAIL_PATH!/\/usr\/sbin\/sendmail -t -i/" ${PHP_EXT_DIR} /zz-mail.ini
35
38
/etc/init.d/sendmail start
39
+ else
40
+ sed -i " s/!SENDMAIL_PATH!/\" true > \/dev\/null\" /" ${PHP_EXT_DIR} /zz-mail.ini
36
41
fi
37
42
38
- PHP_EXT_DIR=/usr/local/etc/php/conf.d
39
-
40
43
# Substitute in php.ini values
41
44
[ ! -z " ${PHP_MEMORY_LIMIT} " ] && sed -i " s/!PHP_MEMORY_LIMIT!/${PHP_MEMORY_LIMIT} /" ${PHP_EXT_DIR} /zz-magento.ini
42
45
[ ! -z " ${UPLOAD_MAX_FILESIZE} " ] && sed -i " s/!UPLOAD_MAX_FILESIZE!/${UPLOAD_MAX_FILESIZE} /" ${PHP_EXT_DIR} /zz-magento.ini
Original file line number Diff line number Diff line change 1
1
; Sendmail
2
- sendmail_path =/usr/sbin/sendmail -t -i
2
+ sendmail_path =!SENDMAIL_PATH!
Original file line number Diff line number Diff line change @@ -41,13 +41,16 @@ touch $CRON_LOG
41
41
echo " cron.* $CRON_LOG " > /etc/rsyslog.d/cron.conf
42
42
service rsyslog start
43
43
44
+ PHP_EXT_DIR=/usr/local/etc/php/conf.d
45
+
44
46
# Configure Sendmail if required
45
47
if [ " $ENABLE_SENDMAIL " == " true" ]; then
48
+ sed -i " s/!SENDMAIL_PATH!/\/usr\/sbin\/sendmail -t -i/" ${PHP_EXT_DIR} /zz-mail.ini
46
49
/etc/init.d/sendmail start
50
+ else
51
+ sed -i " s/!SENDMAIL_PATH!/\" true > \/dev\/null\" /" ${PHP_EXT_DIR} /zz-mail.ini
47
52
fi
48
53
49
- PHP_EXT_DIR=/usr/local/etc/php/conf.d
50
-
51
54
# Substitute in php.ini values
52
55
[ ! -z " ${PHP_MEMORY_LIMIT} " ] && sed -i " s/!PHP_MEMORY_LIMIT!/${PHP_MEMORY_LIMIT} /" ${PHP_EXT_DIR} /zz-magento.ini
53
56
[ ! -z " ${UPLOAD_MAX_FILESIZE} " ] && sed -i " s/!UPLOAD_MAX_FILESIZE!/${UPLOAD_MAX_FILESIZE} /" ${PHP_EXT_DIR} /zz-magento.ini
@@ -64,6 +67,7 @@ if [ -x "$(command -v ${PHP_EXT_COM_ON})" ] && [ ! -z "${PHP_EXTENSIONS}" ]; the
64
67
${PHP_EXT_COM_ON} ${PHP_EXTENSIONS}
65
68
fi
66
69
70
+
67
71
# Configure composer
68
72
[ ! -z " ${COMPOSER_GITHUB_TOKEN} " ] && \
69
73
composer config --global github-oauth.github.com $COMPOSER_GITHUB_TOKEN
Original file line number Diff line number Diff line change 1
1
; Sendmail
2
- sendmail_path =/usr/sbin/sendmail -t -i
2
+ sendmail_path =!SENDMAIL_PATH!
Original file line number Diff line number Diff line change 30
30
# Ensure our Magento directory exists
31
31
mkdir -p $MAGENTO_ROOT
32
32
33
+ PHP_EXT_DIR=/usr/local/etc/php/conf.d
34
+
33
35
# Configure Sendmail if required
34
36
if [ " $ENABLE_SENDMAIL " == " true" ]; then
37
+ sed -i " s/!SENDMAIL_PATH!/\/usr\/sbin\/sendmail -t -i/" ${PHP_EXT_DIR} /zz-mail.ini
35
38
/etc/init.d/sendmail start
39
+ else
40
+ sed -i " s/!SENDMAIL_PATH!/\" true > \/dev\/null\" /" ${PHP_EXT_DIR} /zz-mail.ini
36
41
fi
37
42
38
- PHP_EXT_DIR=/usr/local/etc/php/conf.d
39
-
40
43
# Substitute in php.ini values
41
44
[ ! -z " ${PHP_MEMORY_LIMIT} " ] && sed -i " s/!PHP_MEMORY_LIMIT!/${PHP_MEMORY_LIMIT} /" ${PHP_EXT_DIR} /zz-magento.ini
42
45
[ ! -z " ${UPLOAD_MAX_FILESIZE} " ] && sed -i " s/!UPLOAD_MAX_FILESIZE!/${UPLOAD_MAX_FILESIZE} /" ${PHP_EXT_DIR} /zz-magento.ini
Original file line number Diff line number Diff line change 1
1
; Sendmail
2
- sendmail_path =/usr/sbin/sendmail -t -i
2
+ sendmail_path =!SENDMAIL_PATH!
Original file line number Diff line number Diff line change @@ -41,21 +41,23 @@ touch $CRON_LOG
41
41
echo " cron.* $CRON_LOG " > /etc/rsyslog.d/cron.conf
42
42
service rsyslog start
43
43
44
+ PHP_EXT_DIR=/usr/local/etc/php/conf.d
45
+
44
46
# Configure Sendmail if required
45
47
if [ " $ENABLE_SENDMAIL " == " true" ]; then
48
+ sed -i " s/!SENDMAIL_PATH!/\/usr\/sbin\/sendmail -t -i/" ${PHP_EXT_DIR} /zz-mail.ini
46
49
/etc/init.d/sendmail start
50
+ else
51
+ sed -i " s/!SENDMAIL_PATH!/\" true > \/dev\/null\" /" ${PHP_EXT_DIR} /zz-mail.ini
47
52
fi
48
53
49
- PHP_EXT_DIR=/usr/local/etc/php/conf.d
50
-
51
54
# Substitute in php.ini values
52
55
[ ! -z " ${PHP_MEMORY_LIMIT} " ] && sed -i " s/!PHP_MEMORY_LIMIT!/${PHP_MEMORY_LIMIT} /" ${PHP_EXT_DIR} /zz-magento.ini
53
56
[ ! -z " ${UPLOAD_MAX_FILESIZE} " ] && sed -i " s/!UPLOAD_MAX_FILESIZE!/${UPLOAD_MAX_FILESIZE} /" ${PHP_EXT_DIR} /zz-magento.ini
54
57
55
58
# Add custom php.ini if it exists
56
59
[ -f " /app/php.ini" ] && cp /app/php.ini ${PHP_EXT_DIR} /zzz-custom-php.ini
57
60
58
-
59
61
# Enable PHP extensions
60
62
PHP_EXT_COM_ON=docker-php-ext-enable
61
63
@@ -65,6 +67,7 @@ if [ -x "$(command -v ${PHP_EXT_COM_ON})" ] && [ ! -z "${PHP_EXTENSIONS}" ]; the
65
67
${PHP_EXT_COM_ON} ${PHP_EXTENSIONS}
66
68
fi
67
69
70
+
68
71
# Configure composer
69
72
[ ! -z " ${COMPOSER_GITHUB_TOKEN} " ] && \
70
73
composer config --global github-oauth.github.com $COMPOSER_GITHUB_TOKEN
Original file line number Diff line number Diff line change 1
1
; Sendmail
2
- sendmail_path =/usr/sbin/sendmail -t -i
2
+ sendmail_path =!SENDMAIL_PATH!
You can’t perform that action at this time.
0 commit comments