| Server IP : 172.67.131.151 / Your IP : 104.23.197.111 Web Server : Apache System : Linux keen-cori.18-142-40-148.plesk.page 5.15.0-1084-aws #91~20.04.1-Ubuntu SMP Fri May 2 06:59:36 UTC 2025 x86_64 User : simottodesign.com_2tntp341vs7 ( 10011) PHP Version : 8.3.31 Disable Function : opcache_get_status MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/thread-self/root/usr/share/awstats/tools/ |
Upload File : |
#!/bin/sh
##
## update.sh, written by Sergey B Kirpichev <[email protected]>
##
## Update AWStats data for all configs, awstats.*.conf (Debian specific)
##
set -e
DEFAULT=/etc/default/awstats
AWSTATS=/usr/lib/cgi-bin/awstats.pl
ERRFILE=`mktemp --tmpdir awstats.XXXXXXXXXX`
trap 'rm -f $ERRFILE' INT QUIT TERM EXIT
[ -f $AWSTATS ] || exit 1
# Set defaults.
AWSTATS_NICE=10
[ ! -r "$DEFAULT" ] || . "$DEFAULT"
# For compatibility: handle empty AWSTATS_ENABLE_CRONTABS as "yes":
[ "${AWSTATS_ENABLE_CRONTABS:-yes}" = "yes" ] || exit 0
cd /etc/awstats
for c in `/bin/ls -1 awstats.*.conf 2>/dev/null | \
/bin/sed 's/^awstats\.\(.*\)\.conf/\1/'` \
`[ -f /etc/awstats/awstats.conf ] && echo awstats`
do
if ! nice -n $AWSTATS_NICE $AWSTATS \
-config=$c \
-update >$ERRFILE 2>&1
then
echo "Error while processing" \
"/etc/awstats/awstats$(test $c != awstats && echo .$c).conf" >&2
cat $ERRFILE >&2 # an error occurred
fi
done