Hello,
I would perform some custom operations after a domain get's created or deleted.
I followed this guide:
http://en.ispdoc.com/index.php/Perfo...tom_operations
For testing i added a /usr/local/ispmgr/etc/ispmgr_mod_jetty-add.xml:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<mgrdata>
<handler name="jetty_add.pl" type="cgi">
<event after="yes">domain.edit</event>
</handler>
</mgrdata>
And added /usr/local/ispmgr/addon/jetty_add.pl:
Code:
#!/usr/bin/perl
use CGI;
my $Q = new CGI;
system("touch /root/jetty_added");
print "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<doc/>\n";
jetty_add.pl has ben chmoded 750 and is owned by root.root
I restarted ispmgr and tried to add a domain. The domain gets created but nothing happens. No error or something, but jetty_added gets not created.
Running perl /usr/local/ispmgr/addon/jetty_add.pl creates a empty file /root/jetty_added, so the script is working. But it seems ispmgr doesn't fire it on events.
What is missing?