File tree Expand file tree Collapse file tree 2 files changed +18
-5
lines changed Expand file tree Collapse file tree 2 files changed +18
-5
lines changed Original file line number Diff line number Diff line change 1
1
FROM eu.gcr.io/long-grin-186810/rs-php:7.4.4-apache-2.4.38.0
2
2
LABEL maintainer="Ralph Schuster <github@ralph-schuster.eu>"
3
3
4
- # RUN apt-get update && apt-get update && apt-get install -y --no-install-recommends \
5
- # patch \
6
- # && rm -rf /var/lib/apt/lists/*
4
+ RUN apt-get update && apt-get update && apt-get install -y --no-install-recommends \
5
+ patch \
6
+ && rm -rf /var/lib/apt/lists/*
7
7
8
8
# ADD etc/php/ /usr/local/etc/php/conf.d/
9
9
# ADD etc/conf/ /etc/apache2/conf-enabled/
@@ -18,8 +18,9 @@ RUN set -xe \
18
18
&& curl -o postfixadmin.tar.gz -L "$PFA_URL" \
19
19
&& tar --strip-components=1 -xvf postfixadmin.tar.gz \
20
20
&& rm postfixadmin.tar.gz \
21
- && mkdir templates_c \
22
- && chown -R www-data:www-data .
21
+ && mkdir templates_c
23
22
24
23
ADD src/ /var/www/html/
24
+ RUN patch model/MailboxHandler.php < MailboxHandler.php.patch
25
25
26
+ RUN chown -R www-data:www-data .
Original file line number Diff line number Diff line change
1
+ --- MailboxHandler.php.orig 2020-04-18 17:09:37.402734541 +0200
2
+ +++ MailboxHandler.php 2020-04-18 17:10:37.162880214 +0200
3
+ @@ -216,7 +216,7 @@
4
+
5
+
6
+ protected function beforestore() {
7
+ -
8
+ + if (!is_numeric($this->values['quota'])) $this->values['quota'] = 0;
9
+ if (isset($this->values['quota']) && $this->values['quota'] != -1) {
10
+ $multiplier = Config::read('quota_multiplier');
11
+ if ($multiplier == 0 || !is_numeric($multiplier)) { // or empty string, or null, or false...
12
+
You can’t perform that action at this time.
0 commit comments