From 78c92ae116d4c4738431eb83922c26609977b3aa Mon Sep 17 00:00:00 2001 From: Thomas Hochstein Date: Sat, 7 Jun 2025 22:50:30 +0200 Subject: [PATCH] Change install path from /srv/ to /opt/. Signed-off-by: Thomas Hochstein --- contrib/dopostingstats.sh | 8 ++++---- contrib/yearstats.sh | 4 ++-- doc/INSTALL | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/contrib/dopostingstats.sh b/contrib/dopostingstats.sh index 61ffd53..88e315c 100755 --- a/contrib/dopostingstats.sh +++ b/contrib/dopostingstats.sh @@ -1,5 +1,5 @@ #!/bin/bash -# installation path is /srv/newsstats/, please adjust accordingly +# installation path is /opt/newsstats/, please adjust accordingly # get month MONTH=$1 @@ -8,6 +8,6 @@ if ! [[ $1 =~ [0-9]{4}-[0-9]{2} ]]; then fi # post stats -/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 -/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 -/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 +/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 +/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 +/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 diff --git a/contrib/yearstats.sh b/contrib/yearstats.sh index 3cc2ab4..394c96d 100755 --- a/contrib/yearstats.sh +++ b/contrib/yearstats.sh @@ -1,8 +1,8 @@ #!/bin/bash -# installation path is /srv/newsstats/, please adjust accordingly +# installation path is /opt/newsstats/, please adjust accordingly # $1: newsgroup echo "Stats for $1" -cd /srv/newsstats/ +cd /opt/newsstats/ for year in {2012..2022} do echo -n "${year}: " diff --git a/doc/INSTALL b/doc/INSTALL index 3588c21..3818e71 100644 --- a/doc/INSTALL +++ b/doc/INSTALL @@ -17,7 +17,7 @@ INSTALLATION INSTRUCTIONS * Download the current version of NewsStats from . - * Untar it into a directory of your choice, i.e. /srv/newsstats: + * Untar it into a directory of your choice, i.e. /opt/newsstats: $ cd /srv $ tar -xzf newsstats-n.n.n.tar.gz