Add support for custom robots.txt in conf/stack

Fixes #115
This commit is contained in:
Joseph Schorr 2015-06-11 12:33:21 -04:00
parent a99414b222
commit 191f84fd0b
2 changed files with 7 additions and 0 deletions

View file

@ -38,6 +38,7 @@ ADD . .
# Run grunt
RUN cd grunt && grunt
ADD conf/init/copy_robots_txt.sh /etc/my_init.d/
ADD conf/init/doupdatelimits.sh /etc/my_init.d/
ADD conf/init/copy_syslog_config.sh /etc/my_init.d/
ADD conf/init/runmigration.sh /etc/my_init.d/

6
conf/init/copy_robots_txt.sh Executable file
View file

@ -0,0 +1,6 @@
#! /bin/sh
if [ -e /conf/stack/robots.txt ]
then
cp /conf/stack/robots.txt /static/robots.txt
fi