Skip to content

plugin update does not fail on bad file permissions #90

@emersonveenstra

Description

@emersonveenstra

Running wp plugin update --all does not fail with bad file permissions:

emerson@orion-web-1:/var/www/sites/example.com $ wp plugin update --all
Enabling Maintenance mode...
Downloading update from https://downloads.wordpress.org/plugin/wordpress-seo.7.0.3.zip...
Using cached file '/home/emerson/.wp-cli/cache/plugin/wordpress-seo-7.0.3.zip'...
Unpacking the update...
Installing the latest version...
Removing the old version of the plugin...
Warning: The update cannot be installed because we will be unable to copy some files. This is usually due to inconsistent file permissions.
[snipped many files]
Plugin update failed.
Disabling Maintenance mode...
+---------------+-------------+-------------+--------+
| name          | old_version | new_version | status |
+---------------+-------------+-------------+--------+
| wordpress-seo | 6.2         | 7.0.3       | Error  |
+---------------+-------------+-------------+--------+
Success: Plugin already updated.

For reference:

emerson@orion-web-1:/var/www/sites/example.com $ wp cli version
WP-CLI 1.5.0
emerson@orion-web-1:/var/www/sites/example.com $ php -v
PHP 7.2.1-1+ubuntu16.04.1+deb.sury.org+1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions