[IMP] Copie d'un dossier nommé 'static' contenant les fichiers statiques

à rajouter
This commit is contained in:
Olivier DOSSMANN 2013-04-10 14:33:15 +02:00
parent c4d5dca880
commit aa3abfe259
2 changed files with 31 additions and 1 deletions

View File

@ -6,9 +6,24 @@
SRCDIR=./porteail
DESTDIR=${HOME}/public_html
STATICDIR=./static
staticdir_content=0
if test -d ${STATICDIR}
then
content=`ls ${STATICDIR}|wc -l`
if test $content -gt 0
then
staticdir_content=1
fi
fi
process() {
rm -f ${DESTDIR}/* && cp -r ${SRCDIR}/* ${DESTDIR} && echo "...installed!"
rm -rf ${DESTDIR}/* && cp -r ${SRCDIR}/* ${DESTDIR} && echo "...installed!"
if test ${staticdir_content} -gt 0
then
cp -r ${STATICDIR}/* ${DESTDIR}
fi
}
echo "INSTALL to ${DESTDIR}..."

15
static/robots.txt Normal file
View File

@ -0,0 +1,15 @@
## Tout les robots
User-Agent: *
## Autorisations
#Allow: /mondossier
## Refus
Disallow: /image/
## Evite de dupliquer les donnees
Disallow: /*.php$
Disallow: /*.js$
Disallow: /*.inc$
Disallow: /*.css$
## MSNBot
User-Agent: MSNBot
Disallow: /