1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/cops_ynh.git synced 2024-09-03 18:25:57 +02:00

add robots.txt file to avoid scan of directory by google, bing, etc robots

This commit is contained in:
polytan02 2016-12-23 08:17:08 +00:00
parent 8e0d948290
commit 253daab50e
3 changed files with 5 additions and 0 deletions

2
conf/robots.txt Executable file
View file

@ -0,0 +1,2 @@
User-agent: *
Disallow: /

View file

@ -63,6 +63,7 @@ sed -i "s@CALIBRETOCHANGE@$calibrepath@g" ../sources/config_local.php
timezone=`sudo cat /etc/timezone`;
sed -i "s@TIMEZONETOCHANGE@$timezone@g" ../sources/config_local.php
sudo cp ../conf/robots.txt ../sources/
# To be done : make it an if loop

View file

@ -78,6 +78,8 @@ sed -i "s@CALIBRETOCHANGE@$calibrepath@g" ../sources/config_local.php
timezone=`sudo cat /etc/timezone`;
sed -i "s@TIMEZONETOCHANGE@$timezone@g" ../sources/config_local.php
sudo cp ../conf/robots.txt ../sources/
# Base site
sudo cp -a ../sources/* $final_path/