diff --git a/copy_robots.sh b/copy_robots.sh new file mode 100644 index 0000000..a127240 --- /dev/null +++ b/copy_robots.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +root_location="$(nginx -V 2>&1 | grep -o '\-\-prefix=\([A-Za-z\/]*\)' | cut -d '=' -f2)" +cp robots.txt $root_location \ No newline at end of file diff --git a/robots.txt b/robots.txt new file mode 100644 index 0000000..aa0cb3b --- /dev/null +++ b/robots.txt @@ -0,0 +1,5 @@ +User-agent: * +Disallow: /static +Disallow: /media +Disallow: /archive +Disallow: /reports \ No newline at end of file