http://www.directadmin.com/features.php?id=183
Great job! Urchin integration is coming soon @ DA
Thanks
Great job! Urchin integration is coming soon @ DA
Thanks
#!/bin/sh
URCHINPATH="/usr/local/urchin"
OUTPUT="/tmp/urchin-temp.conf"
DOMAIN=$domain
USER=$username@$domain
PASSWORD="default_password"
echo "<Profile Name="$DOMAIN">" > $OUTPUT
echo " ct_name=$DOMAIN" >> $OUTPUT
echo " ct_affiliation=(NONE)" >> $OUTPUT
echo " ct_website=http://www.$DOMAIN" >> $OUTPUT
echo " ct_reportdomains=www.$DOMAIN,$DOMAIN" >> $OUTPUT
echo " cs_llist=$DOMAIN-access-log,$DOMAIN-access-log.[1-4]" >> $OUTPUT
echo " ct_defaultpage=index.html" >> $OUTPUT
echo " cs_vmethod=0" >> $OUTPUT
echo " cs_ulist=$USER" >> $OUTPUT
echo "</Profile>" >> $OUTPUT
echo >> $OUTPUT
echo "<Task Name="$DOMAIN">" >> $OUTPUT
echo " ct_name=$DOMAIN" >> $OUTPUT
echo " ct_affiliation=(NONE)" >> $OUTPUT
echo " cr_frequency=4" >> $OUTPUT
echo " cr_minute=0" >> $OUTPUT
echo " cr_runnow=0" >> $OUTPUT
echo " cr_enabled=off" >> $OUTPUT
echo "</Task>" >> $OUTPUT
echo >> $OUTPUT
echo "<Logfile Name="$DOMAIN-access-log">" >> $OUTPUT
echo " ct_name=$DOMAIN-access-log" >> $OUTPUT
echo " ct_affiliation=(NONE)" >> $OUTPUT
echo " ct_loglocation=[B]/path/to/access_log[/B]" >> $OUTPUT
echo " cs_logformat=ncsa" >> $OUTPUT
echo " cr_type=local" >> $OUTPUT
echo " cs_rlist=$DOMAIN" >> $OUTPUT
echo "</Logfile>" >> $OUTPUT
echo >> $OUTPUT
echo "<Logfile Name="$DOMAIN-access-log.[1-4]">" >> $OUTPUT
echo " ct_name=$DOMAIN-access-log.[1-4]" >> $OUTPUT
echo " ct_affiliation=(NONE)" >> $OUTPUT
echo " ct_loglocation=[B]/path/to/access_log[/B].[1-4]">> $OUTPUT
echo " cs_logformat=ncsa" >> $OUTPUT
echo " cr_type=local" >> $OUTPUT
echo " cs_rlist=$DOMAIN" >> $OUTPUT
echo "</Logfile>" >> $OUTPUT
echo >> $OUTPUT
echo "<User Name="$USER">" >> $OUTPUT
echo " ct_affiliation=(NONE)" >> $OUTPUT
echo " ct_fullname="$DOMAIN"" >> $OUTPUT
echo " ct_name=$USER" >> $OUTPUT
echo " ct_password=$PASSWORD" >> $OUTPUT
echo " cs_rlist=$DOMAIN" >> $OUTPUT
echo "</User>" >> $OUTPUT
$URCHINPATH/util/uconf-import -f $OUTPUT
chmod 755 urchin-add.sh
/urchin-automation/urchin-add.sh