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 1022 times)
sparek
Group: Member
Post Group: Newbie
Posts: 49
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: 4488
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.

-----------------------
SitePad Website Builder
Follow us on Twitter
IP: --   

Softaculous Update hook
sparek
Group: Member
Post Group: Newbie
Posts: 49
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: 4488
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.

-----------------------
SitePad Website Builder
Follow us on Twitter
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is April 3, 2020, 7:30 am.

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