Software: Apache/2.2.22 (Debian). PHP/5.6.36 uname -a: Linux h05.hvosting.ua 4.9.110-amd64 #3 SMP Sun Nov 4 16:27:09 UTC 2018 x86_64 uid=1389(h33678) gid=1099(h33678) groups=1099(h33678),502(mgrsecure) Safe-mode: OFF (not secure) /usr/share/awstats/tools/ drwxr-xr-x |
Viewing file: Select action/file-type: #!/bin/sh ## ## update.sh, written by Sergey B Kirpichev <skirpichev@gmail.com> ## ## 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" 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 |
:: Command execute :: | |
--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by PinoyWH1Z | C99Shell Github | Generation time: 0.0164 ]-- |