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:
parent
8e0d948290
commit
253daab50e
3 changed files with 5 additions and 0 deletions
2
conf/robots.txt
Executable file
2
conf/robots.txt
Executable file
|
@ -0,0 +1,2 @@
|
||||||
|
User-agent: *
|
||||||
|
Disallow: /
|
|
@ -63,6 +63,7 @@ sed -i "s@CALIBRETOCHANGE@$calibrepath@g" ../sources/config_local.php
|
||||||
timezone=`sudo cat /etc/timezone`;
|
timezone=`sudo cat /etc/timezone`;
|
||||||
sed -i "s@TIMEZONETOCHANGE@$timezone@g" ../sources/config_local.php
|
sed -i "s@TIMEZONETOCHANGE@$timezone@g" ../sources/config_local.php
|
||||||
|
|
||||||
|
sudo cp ../conf/robots.txt ../sources/
|
||||||
|
|
||||||
# To be done : make it an if loop
|
# To be done : make it an if loop
|
||||||
|
|
||||||
|
|
|
@ -78,6 +78,8 @@ sed -i "s@CALIBRETOCHANGE@$calibrepath@g" ../sources/config_local.php
|
||||||
timezone=`sudo cat /etc/timezone`;
|
timezone=`sudo cat /etc/timezone`;
|
||||||
sed -i "s@TIMEZONETOCHANGE@$timezone@g" ../sources/config_local.php
|
sed -i "s@TIMEZONETOCHANGE@$timezone@g" ../sources/config_local.php
|
||||||
|
|
||||||
|
sudo cp ../conf/robots.txt ../sources/
|
||||||
|
|
||||||
# Base site
|
# Base site
|
||||||
sudo cp -a ../sources/* $final_path/
|
sudo cp -a ../sources/* $final_path/
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue