File tree Expand file tree Collapse file tree 4 files changed +40
-4
lines changed Expand file tree Collapse file tree 4 files changed +40
-4
lines changed Original file line number Diff line number Diff line change @@ -35,8 +35,17 @@ RUN apt-get update && apt-get install -y apache2-bin apache2.2-common --no-insta
35
35
ENV APACHE_CONFDIR /etc/apache2
36
36
ENV APACHE_ENVVARS $APACHE_CONFDIR/envvars
37
37
38
- # setup directories and permissions
39
38
RUN set -ex \
39
+ \
40
+ # generically convert lines like
41
+ # export APACHE_RUN_USER=www-data
42
+ # into
43
+ # : ${APACHE_RUN_USER:=www-data}
44
+ # export APACHE_RUN_USER
45
+ # so that they can be overridden at runtime ("-e APACHE_RUN_USER=...")
46
+ && sed -r 's/^export ([^=]+)=(.*)$/: ${\1 :=\2 }\n export \1 /' "$APACHE_ENVVARS" \
47
+ \
48
+ # setup directories and permissions
40
49
&& . "$APACHE_ENVVARS" \
41
50
&& for dir in \
42
51
"$APACHE_LOCK_DIR" \
Original file line number Diff line number Diff line change @@ -35,8 +35,17 @@ RUN apt-get update && apt-get install -y apache2-bin apache2.2-common --no-insta
35
35
ENV APACHE_CONFDIR /etc/apache2
36
36
ENV APACHE_ENVVARS $APACHE_CONFDIR/envvars
37
37
38
- # setup directories and permissions
39
38
RUN set -ex \
39
+ \
40
+ # generically convert lines like
41
+ # export APACHE_RUN_USER=www-data
42
+ # into
43
+ # : ${APACHE_RUN_USER:=www-data}
44
+ # export APACHE_RUN_USER
45
+ # so that they can be overridden at runtime ("-e APACHE_RUN_USER=...")
46
+ && sed -r 's/^export ([^=]+)=(.*)$/: ${\1 :=\2 }\n export \1 /' "$APACHE_ENVVARS" \
47
+ \
48
+ # setup directories and permissions
40
49
&& . "$APACHE_ENVVARS" \
41
50
&& for dir in \
42
51
"$APACHE_LOCK_DIR" \
Original file line number Diff line number Diff line change @@ -35,8 +35,17 @@ RUN apt-get update && apt-get install -y apache2-bin apache2.2-common --no-insta
35
35
ENV APACHE_CONFDIR /etc/apache2
36
36
ENV APACHE_ENVVARS $APACHE_CONFDIR/envvars
37
37
38
- # setup directories and permissions
39
38
RUN set -ex \
39
+ \
40
+ # generically convert lines like
41
+ # export APACHE_RUN_USER=www-data
42
+ # into
43
+ # : ${APACHE_RUN_USER:=www-data}
44
+ # export APACHE_RUN_USER
45
+ # so that they can be overridden at runtime ("-e APACHE_RUN_USER=...")
46
+ && sed -r 's/^export ([^=]+)=(.*)$/: ${\1 :=\2 }\n export \1 /' "$APACHE_ENVVARS" \
47
+ \
48
+ # setup directories and permissions
40
49
&& . "$APACHE_ENVVARS" \
41
50
&& for dir in \
42
51
"$APACHE_LOCK_DIR" \
Original file line number Diff line number Diff line change @@ -3,8 +3,17 @@ RUN apt-get update && apt-get install -y apache2-bin apache2.2-common --no-insta
3
3
ENV APACHE_CONFDIR /etc/apache2
4
4
ENV APACHE_ENVVARS $APACHE_CONFDIR/envvars
5
5
6
- # setup directories and permissions
7
6
RUN set -ex \
7
+ \
8
+ # generically convert lines like
9
+ # export APACHE_RUN_USER=www-data
10
+ # into
11
+ # : ${APACHE_RUN_USER:=www-data}
12
+ # export APACHE_RUN_USER
13
+ # so that they can be overridden at runtime ("-e APACHE_RUN_USER=...")
14
+ && sed -r 's/^export ([^=]+)=(.*)$/: ${\1:=\2}\nexport \1/' "$APACHE_ENVVARS" \
15
+ \
16
+ # setup directories and permissions
8
17
&& . "$APACHE_ENVVARS" \
9
18
&& for dir in \
10
19
"$APACHE_LOCK_DIR" \
You can’t perform that action at this time.
0 commit comments