[IMP] Copie d'un dossier nommé 'static' contenant les fichiers statiques
à rajouter
This commit is contained in:
parent
c4d5dca880
commit
aa3abfe259
17
install.sh
17
install.sh
@ -6,9 +6,24 @@
|
|||||||
|
|
||||||
SRCDIR=./porteail
|
SRCDIR=./porteail
|
||||||
DESTDIR=${HOME}/public_html
|
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() {
|
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}..."
|
echo "INSTALL to ${DESTDIR}..."
|
||||||
|
15
static/robots.txt
Normal file
15
static/robots.txt
Normal 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: /
|
Loading…
Reference in New Issue
Block a user