Introduction
You may want to disable AutoSSL notifications for all cPanel users in some cases.
Procedure
Execute the following commands as the root user. Please note that the second command below needs to be executed in a single line.
touch disable_auto_ssl_notifications.sh
cat << EOF > disable_auto_ssl_notifications.sh
#!/bin/bash
/bin/ls -1 /var/cpanel/users | while read USER; do
/bin/echo "Now processing ${USER} ..."
/usr/bin/cpapi2 --user=${USER} CustInfo savecontactinfo notify_autossl_expiry_coverage=0 notify_autossl_renewal_coverage=0
done
EOF
bash disable_auto_ssl_notifications.sh
Comments
0 comments
Article is closed for comments.