
Originally Posted by
blargman
Could anyone clarfiy this for me? I am going to do some more testing on it but I was under the impression I could hook into cpanel and run arbitrary commands on certain actions.
I created /usr/local/cpanel/hooks/addondomain
then created a file inside it /usr/local/cpanel/hooks/addondomain/deladdondomain
It's a simple python script
#!/usr/local/bin/python
f=open('/root/test.txt', "w")
f.write('This is a test\n')
f.close
I thought this should run any time I delete an addondomain but it doesn't appear to be. I've checked everything obvious permisisons, execute bit etc. Am I just not doing this right at all?
I did forget to run registerhooks. I just did that though and not much more help. If I run the script manually it works fine. :\