Compare commits
No commits in common. "914772230408f98b5096e1e803402defc118229d" and "06c3036fa0f9515b59bce904da8b28e0bb5c9e24" have entirely different histories.
9147722304
...
06c3036fa0
|
@ -486,7 +486,6 @@ sub ClientStats {
|
||||||
version => $Version);
|
version => $Version);
|
||||||
push @Clients, { %UserAgent };
|
push @Clients, { %UserAgent };
|
||||||
} else {
|
} else {
|
||||||
# won't be reached, as $Client is set to User-Agent: in any case
|
|
||||||
&Bleat(1,sprintf("%s FAILED", $Header{'message-id'})) if !@Clients;
|
&Bleat(1,sprintf("%s FAILED", $Header{'message-id'})) if !@Clients;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# installation path is /opt/newsstats/, please adjust accordingly
|
# installation path is /srv/newsstats/, please adjust accordingly
|
||||||
|
|
||||||
# get month
|
# get month
|
||||||
MONTH=$1
|
MONTH=$1
|
||||||
|
@ -8,6 +8,6 @@ if ! [[ $1 =~ [0-9]{4}-[0-9]{2} ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# post stats
|
# post stats
|
||||||
/opt/newsstats/bin/groupstats.pl --nocomments --sums --format dump --month $MONTH | /opt/newsstats/bin/postingstats.pl --month $MONTH | /opt/newsstats/contrib/tinews.pl -X -Y
|
/srv/newsstats/bin/groupstats.pl --nocomments --sums --format dump --month $MONTH | /srv/newsstats/bin/postingstats.pl --month $MONTH | /srv/newsstats/contrib/tinews.pl -X -Y
|
||||||
/opt/newsstats/bin/hoststats.pl --nocomments --sums --format dump --month $MONTH | /opt/newsstats/bin/postingstats.pl -t server --month $MONTH | /opt/newsstats/contrib/tinews.pl -X -Y
|
/srv/newsstats/bin/hoststats.pl --nocomments --sums --format dump --month $MONTH | /srv/newsstats/bin/postingstats.pl -t server --month $MONTH | /srv/newsstats/contrib/tinews.pl -X -Y
|
||||||
/opt/newsstats/bin/clientstats.pl --nocomments --sums --versions --format dump --month $MONTH | /opt/newsstats/bin/postingstats.pl -t client --month $MONTH | /opt/newsstats/contrib/tinews.pl -X -Y
|
/srv/newsstats/bin/clientstats.pl --nocomments --sums --versions --format dump --month $MONTH | /srv/newsstats/bin/postingstats.pl -t client --month $MONTH | /srv/newsstats/contrib/tinews.pl -X -Y
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# installation path is /opt/newsstats/, please adjust accordingly
|
# installation path is /srv/newsstats/, please adjust accordingly
|
||||||
# $1: newsgroup
|
# $1: newsgroup
|
||||||
echo "Stats for $1"
|
echo "Stats for $1"
|
||||||
cd /opt/newsstats/
|
cd /srv/newsstats/
|
||||||
for year in {2012..2022}
|
for year in {2012..2022}
|
||||||
do
|
do
|
||||||
echo -n "${year}: "
|
echo -n "${year}: "
|
||||||
|
|
|
@ -17,7 +17,7 @@ INSTALLATION INSTRUCTIONS
|
||||||
* Download the current version of NewsStats from
|
* Download the current version of NewsStats from
|
||||||
<https://th-h.de/net/software/newsstats/>.
|
<https://th-h.de/net/software/newsstats/>.
|
||||||
|
|
||||||
* Untar it into a directory of your choice, i.e. /opt/newsstats:
|
* Untar it into a directory of your choice, i.e. /srv/newsstats:
|
||||||
|
|
||||||
$ cd /srv
|
$ cd /srv
|
||||||
$ tar -xzf newsstats-n.n.n.tar.gz
|
$ tar -xzf newsstats-n.n.n.tar.gz
|
||||||
|
|
Loading…
Reference in a new issue