From f0dc3f6abb9f09fe7f30541499bafa5b494bb0e2 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Fri, 25 Jan 2002 16:30:23 +0000 Subject: Delete localwebstats-all, Add whois-dk. --- localwebstats-all | 24 ------------------------ whois-dk | 8 ++++++++ 2 files changed, 8 insertions(+), 24 deletions(-) delete mode 100755 localwebstats-all create mode 100644 whois-dk diff --git a/localwebstats-all b/localwebstats-all deleted file mode 100755 index c402d28..0000000 --- a/localwebstats-all +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/bash - -WEBROOT=/var/www -LOGROOT=/var/log/apache - -function webdirs() -{ - echo `find /var/log/apache -type d -print` -# for dir in $(find ${LOGROOT} -type d -print) -# do -# echo $dir -# done -} - -. /etc/local/www || exit 1 - -#for WEBSITE in $(ls $WWWROOT) -#for WEBSITE in $(find $WWWROOT/* -type d -mindepth 1 -maxdepth 1 -print) -for WEBSITE in $(webdirs); do - if test $WEBSITE != "lost+found" - then - /usr/local/sbin/stats-init $WEBSITE - fi -done diff --git a/whois-dk b/whois-dk new file mode 100644 index 0000000..9e4728e --- /dev/null +++ b/whois-dk @@ -0,0 +1,8 @@ +#!/bin/sh + +if [ $# \< 1 -o $# \> 1 ]; then + echo "Usage: `basename $0` " + exit 1 +fi + +wget -O - "http://dk./script/whois.php?lang=eng&query=$1" | w3m -T text/html -dump -- cgit v1.2.3