Skip to content

Commit cd99e96

Browse files
committed
Modify update.sh to deal with both variants
1 parent 0d2f929 commit cd99e96

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

update.sh

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@ fi
1111

1212
sha1="$(curl -sSL "https://wordpress.org/wordpress-$upstream.tar.gz.sha1")"
1313

14-
set -x
15-
sed -ri '
16-
s/^(ENV WORDPRESS_VERSION) .*/\1 '"$current"'/;
17-
s/^(ENV WORDPRESS_UPSTREAM_VERSION) .*/\1 '"$upstream"'/;
18-
s/^(ENV WORDPRESS_SHA1) .*/\1 '"$sha1"'/;
19-
' Dockerfile
14+
for variant in apache fpm; do
15+
set -x
16+
sed -ri '
17+
s/^(ENV WORDPRESS_VERSION) .*/\1 '"$current"'/;
18+
s/^(ENV WORDPRESS_UPSTREAM_VERSION) .*/\1 '"$upstream"'/;
19+
s/^(ENV WORDPRESS_SHA1) .*/\1 '"$sha1"'/;
20+
' "$variant/Dockerfile"
21+
done

0 commit comments

Comments
 (0)