What I want to do is enable IPv6 by default on accounts when they are created.
I've registered a hook to run the following script, post account creation:
It doesn't appear to do anything upon account creation, so I enabled debugging and in the cPanel error log I get:
So it appears $user is not being passed.
Any suggestions to get this to work? A different method perhaps?
Thanks in advance!
I've registered a hook to run the following script, post account creation:
Code:
#!/bin/sh
/usr/local/cpanel/bin/whmapi1 ipv6_enable_account user=$user range=SHARED
Code:
metadata:
command: ipv6_enable_account
reason: "Missing parameter: user"
result: 0
version: 1
Any suggestions to get this to work? A different method perhaps?
Thanks in advance!