File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ RUN rm -rf /var/www/html && mkdir /var/www/html
36
36
VOLUME /var/www/html
37
37
WORKDIR /var/www/html
38
38
39
- ENV WORDPRESS_VERSION 4.0
39
+ ENV WORDPRESS_VERSION 4.0.0
40
40
41
41
# upstream tarballs include ./wordpress/ so this gives us /usr/src/wordpress
42
42
RUN curl -SL http://wordpress.org/wordpress-$WORDPRESS_VERSION.tar.gz | tar -xzC /usr/src/
Original file line number Diff line number Diff line change 3
3
4
4
current=" $( curl -sSL ' http://api.wordpress.org/core/version-check/1.7/' | sed -r ' s/^.*"current":"([^"]+)".*$/\1/' ) "
5
5
6
- sed -ri ' s/^(ENV WORDPRESS_VERSION ).*/\1' " $current " ' /' Dockerfile
6
+ if [[ " $current " != * .* .* ]]; then
7
+ # turn "4.0" into "4.0.0"
8
+ current+=' .0'
9
+ fi
10
+
11
+ set -x
12
+ sed -ri ' s/^(ENV WORDPRESS_VERSION) .*/\1 ' " $current " ' /' Dockerfile
You can’t perform that action at this time.
0 commit comments