Page 1 of 1

Update WP plug-ins

PostPosted: Wed Oct 18, 2017 3:32 am
by ReinerKnudsen
Hello, community,

I had an idea recently and I wondered if you could tell me if and how I could do this via Hazel.

I have several WP-driven websites with different sets of plugins installed. Now some of them ran out of support so that I don't get automatic updates anymore. In order to update them, I download the latest version and manually upload it to the respective servers.

My idea was that Hazel could help me out here.
I have a local folder where I put the extracted plug-in folder.
Once there is an update, Hazel will pick up the folder and run through the list of my FTP-spaces.
If there is a folder of the same name (means the website uses the plug-in) Hazel uploads the plug-in.
If not Hazel will skip to the next FTP location.

Is that doable?

Thanks for your help.
Reiner

Re: Update WP plug-ins

PostPosted: Wed Oct 18, 2017 12:13 pm
by Mr_Noodle
The Upload action doesn't have a way to only upload if the file already exists. You might be able to come up with some scripting to check that but there's no way with the built-in conditions/actions.

Re: Update WP plug-ins

PostPosted: Thu Oct 19, 2017 3:44 am
by ReinerKnudsen
Mr_Noodle wrote:The Upload action doesn't have a way to only upload if the file already exists. You might be able to come up with some scripting to check that but there's no way with the built-in conditions/actions.


Yes, I thought so. Shame. Anyway. I might find a workaround for that. Does the FTP function automatically overwrite existing files and folders?

Re: Update WP plug-ins

PostPosted: Thu Oct 19, 2017 11:52 am
by Mr_Noodle
Yes, there is an option to replace the existing file/folder.