From aa3abfe2599cf90fa404ad5b38bc2accb443c0b8 Mon Sep 17 00:00:00 2001 From: Olivier DOSSMANN Date: Wed, 10 Apr 2013 14:33:15 +0200 Subject: [PATCH] =?UTF-8?q?[IMP]=20Copie=20d'un=20dossier=20nomm=C3=A9=20'?= =?UTF-8?q?static'=20contenant=20les=20fichiers=20statiques=20=C3=A0=20raj?= =?UTF-8?q?outer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 17 ++++++++++++++++- static/robots.txt | 15 +++++++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 static/robots.txt diff --git a/install.sh b/install.sh index cb1d38d..a6cba19 100755 --- a/install.sh +++ b/install.sh @@ -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}..." diff --git a/static/robots.txt b/static/robots.txt new file mode 100644 index 0000000..1c23868 --- /dev/null +++ b/static/robots.txt @@ -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: /