File tree 2 files changed +13
-1
lines changed
2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ RUN apk add --no-cache --update \
50
50
postgresql \
51
51
postgresql-client \
52
52
sqlite \
53
+ sudo \
53
54
wget sqlite git curl bash grep \
54
55
supervisor
55
56
@@ -61,8 +62,12 @@ RUN ln -sf /dev/stdout /var/log/nginx/access.log && \
61
62
62
63
RUN adduser -S -s /bin/bash -u 1001 -G root www-data
63
64
65
+ RUN echo "www-data ALL=(ALL:ALL) NOPASSWD:SETENV: /usr/sbin/postfix" >> /etc/sudoers
66
+
64
67
RUN touch /var/run/nginx.pid && \
65
- chown -R www-data:root /var/run/nginx.pid /etc/php7/php-fpm.d
68
+ chown -R www-data:root /var/run/nginx.pid
69
+
70
+ RUN chown -R www-data:root /etc/php7/php-fpm.d
66
71
67
72
RUN mkdir -p /var/www/html && \
68
73
mkdir -p /usr/share/nginx/cache && \
Original file line number Diff line number Diff line change @@ -67,6 +67,12 @@ check_configured() {
67
67
esac
68
68
}
69
69
70
+ check_sendmail () {
71
+ if [[ " ${MAIL_DRIVER:- } " == " sendmail" ]]; then
72
+ sudo /usr/sbin/postfix start
73
+ fi
74
+ }
75
+
70
76
initialize_system () {
71
77
echo " Initializing Cachet container ..."
72
78
@@ -231,6 +237,7 @@ start_system() {
231
237
/usr/bin/supervisord -n -c /etc/supervisor/supervisord.conf
232
238
}
233
239
240
+ check_sendmail
234
241
start_system
235
242
236
243
exit 0
You can’t perform that action at this time.
0 commit comments