/usr/local/directadmin/scripts/custom/user_create_post_confirmed.sh
代码如下:
#!/bin/sh
CONF=/usr/local/directadmin/data/users/$username/domains/$domain.conf
if [ -s $CONF ]; then
perl -pi -e 's/ssl=ON/ssl=OFF/' $CONF
echo "action=rewrite&value=httpd&user=$username" >> /usr/local/directadmin/data/task.queue
fi
exit 0;