roundcube / plugin-installer

A composer installer for Roundcube plugins
26 stars 15 forks source link

Backup and restore plugin config on update #27

Closed dsoares closed 3 years ago

dsoares commented 3 years ago

On plugin update, Composer 2.0 removes the complete plugin path and then unarchives the new version, losing the previous plugin configuration file. This PR does a backup before removing the plugin from the filesystem and then restores it.

NOTE: #15 also applies to this PR.