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: /