Update WP plug-ins

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Update WP plug-ins 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
ReinerKnudsen
 
Posts: 4
Joined: Mon Aug 17, 2015 12:52 pm

Re: Update WP plug-ins 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.
Mr_Noodle
Site Admin
 
Posts: 11872
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Update WP plug-ins 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?
ReinerKnudsen
 
Posts: 4
Joined: Mon Aug 17, 2015 12:52 pm

Re: Update WP plug-ins Thu Oct 19, 2017 11:52 am • by Mr_Noodle
Yes, there is an option to replace the existing file/folder.
Mr_Noodle
Site Admin
 
Posts: 11872
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support