Welcome Guest. Please Login or Register  


You are here: Index > Softaculous Auto Installer > General Support > Topic : Softaculous Update hook



Threaded Mode | Print  

 Softaculous Update hook, Run script after library update (3 Replies, Read 3845 times)
sparek
Group: Member
Post Group: Working Newbie
Posts: 74
Status:
Are there any hooks or systems for running a script after Softaculous (the library... not individual scripts) updates?
For example, you recently released an update to Softaculous... making it Softaculous 5.3.7.  Is there a way I can run a script after Softaculous is updated.
Presumably you'll eventually release Softaculous 5.3.8 ... I'd like to run a script automatically after that update.  Is there a way to do this?
IP: --   

Softaculous Update hook
Brijesh
Group: Softaculous Team
Post Group: Super Member
Posts: 5640
Status:
Hi,

Yes we do have a filter for that :
https://www.softaculous.com/docs/developers/filters/#post_softaculous_upgrade

Do let us know if you face any issues.

-----------------------
Webuzo - Multi User Hosting Control Panel
AMPPS - Best WordPress/PHP/MySQL development tool
IP: --   

Softaculous Update hook
sparek
Group: Member
Post Group: Working Newbie
Posts: 74
Status:
Are you sure this works with DirectAdmin?
I created the file - /usr/local/directadmin/plugins/softaculous/enduser/hooks/post_softaculous_upgrade.php - with the content:
<?php
insert_filter('post_softaculous_upgrade', 'my_post_softaculous_upgrade', 1);
function my_post_softaculous_upgrade(){
    mail(%myemailaddress%,"Softaculous Upgrade", "Softaculous Upgrade");
}

And I did not get any email after the recent Softaculous Upgrade.
IP: --   

Softaculous Update hook
Brijesh
Group: Softaculous Team
Post Group: Super Member
Posts: 5640
Status:
Hi,

At the moment the filter is supported only with the filename "filter.php"

Please rename the file to :
/usr/local/directadmin/plugins/softaculous/images/hooks/filter.php

and then the filter should work fine.

-----------------------
Webuzo - Multi User Hosting Control Panel
AMPPS - Best WordPress/PHP/MySQL development tool
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is March 28, 2024, 9:47 am.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.092