- Server operating system version
- CentOS Linux 7
- Plesk version and microupdate number
- 18.0.41
I created an Event Handler for "SSL/TLS certificate on domain assigned/unassigned" event in Plesk Settings. However, the specified in the documentation Event Parameters (Event Parameters Passed by Event Handlers) are mostly empty with the exception of DOMAIN_ID and DOMAIN_NAME (new and old).
I'm passing the parameters in <> and then just trying to print them out:
To test this, I reissue a Letsencrypt certificate through admin panel.
Result:
Meanwhile, all those parameters seem to be available if I check Plesk action log. Is there something I'm doing wrong?
I'm passing the parameters in <> and then just trying to print them out:
Bash:
/root/ssl-copy-xmpp.sh <NEW_SSL_BINDING_TYPE> <NEW_DOMAIN_ID> <NEW_DOMAIN_NAME> <NEW_CERTIFICATE_ID> <NEW_CERTIFICATE_NAME> <NEW_CERTIFICATE_FILE> <OLD_CERTIFICATE_FILE>
cat /root/ssl-copy-xmpp.sh
#!/bin/bash
echo $1 >> /tmp/ssl-copy-xmpp.log
echo $2 >> /tmp/ssl-copy-xmpp.log
echo $3 >> /tmp/ssl-copy-xmpp.log
echo $4 >> /tmp/ssl-copy-xmpp.log
echo $5 >> /tmp/ssl-copy-xmpp.log
echo $6 >> /tmp/ssl-copy-xmpp.log
echo $7 >> /tmp/ssl-copy-xmpp.log
To test this, I reissue a Letsencrypt certificate through admin panel.
Result:
Code:
""
1
domain.com
""
""
""
""
Meanwhile, all those parameters seem to be available if I check Plesk action log. Is there something I'm doing wrong?