Skip to content

Commit e22fc09

Browse files
author
Issac Trotts
committed
Use tar -C instead of tar+rsync
1 parent c4d3100 commit e22fc09

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

appengine/standard/wordpress/update-wordpress

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@ curl -L https://wordpress.org/latest.tar.gz 2>$log >wordpress.tar.gz \
1515
tar xzvf wordpress.tar.gz &>$log || die "Failed to untar wordpress tarball: $(tail $log)"
1616
curl -L https://github.com/wpCloud/wp-stateless/archive/2.1.1.tar.gz 2>$log >wp-stateless.tar.gz \
1717
|| die "Failed to fetch wp-stateless plugin: $(cat $log)"
18-
tar xzvf wp-stateless.tar.gz &>$log || die "Failed to untar wp-stateless tarball: $(tail $log)"
19-
rsync wp-stateless-2.1.1 wordpress/wp-content/plugins &>$log \
20-
|| die "Failed to copy wp-stateless plugin into place: $(cat $log)"
18+
tar xzvf wp-stateless.tar.gz -C wordpress/wp-content/plugins &>$log \
19+
|| die "Failed to untar wp-stateless tarball: $(tail $log)"
2120
cd wordpress || die "Failed to cd into wordpress."
2221
# Force WordPress not to prepend ABSPATH to UPLOADS since we have
2322
# defined UPLOADS to be an absolute path: /tmp.

0 commit comments

Comments
 (0)