YahnisElsts / plugin-update-checker

A custom update checker for WordPress plugins. Useful if you don't want to host your project in the official WP repository, but would still like it to support automatic updates. Despite the name, it also works with themes.
MIT License
2.26k stars 410 forks source link

File Permissions Change When You Pull An Update #398

Open christopherwdavies opened 4 years ago

christopherwdavies commented 4 years ago

Hi,

This API works perfectly fine with my plugin, the issue is after you pull one update (which happens smoothly), it then changes owners/permissions.

This means that when you go to pull an update for the second time it fails because it's not happy with the file permissions.

For example. my owner/group is bitnami:daemon

After updating it becomes daemon:daemon

In this structure, it cannot be automatically updated in the future and throws the permission error message.

Thanks, Chris

YahnisElsts commented 4 years ago

I suspect that this probably has little to do with the update checker as such and is actually a more general problem with the site or server configuration. Here's a quick way to test that: can you update plugins that are hosted on WordPress.org? Try installing an older version of Jetpack or another popular plugin and see if you can update it successfully. If you can, does that still work if you upload that plugin the same way that you uploaded yours (probably using FTP or the ZIP uploader under "Plugins -> Add New")?