Generar la web de estadísticas estaticamente

De Wikillano

Este Script que genera las paginas estáticas de awstats y crea un link index.html apuntando a la pagina principal de la web.

#!/bin/bash

#######################################
### Dominio Pachelbel.atosorigin.es ###
#######################################

cd /data/www/estadisticas/pachelbel 

perl /usr/local/awstats/tools/awstats_buildstaticpages.pl -update -lang=es -config=pachelbel.atosorigin.es -dir=/data /www/estadisticas/pachelbel

if [ -f index.html ]
then
        echo el LINK index.html EXISTE
else
        echo el link index.html no existe creando ....
        ln -s awstats.pachelbel.atosorigin.es.html  index.html
fi 

####################################
### Dominio canigo.atosorigin.es ###
####################################

cd /data/www/estadisticas/canigo

perl /usr/local/awstats/tools/awstats_buildstaticpages.pl -update -lang=es -config=canigo.atosorigin.es -dir=/data /www/estadisticas/canigo

if [ -f index.html ]
then
        echo el LINK index.html EXISTE
else
        echo el link index.html no existe creando ....
        ln -s awstats.canigo.atosorigin.es.html  index.html
fi
Herramientas personales