The old cat with heredoc wasn't working to build the crontab properly
on Xenial in buildeg.sh. We change it to use a sed command instead.
This also gives us a little more control over where the SHELL variable
goes in the output file.
Signed-off-by: Jason Stephenson <jason@sigio.com>
sudo systemctl restart apache2
# Setup crontab
-cat - Open-ILS/examples/crontab.example > /home/opensrf/crontab <<EOF_CRONTAB
-# Fix shell as master crontab example doesn't ensure we are using bash
-SHELL=/bin/bash
-
-EOF_CRONTAB
+sed -e '/^OPENILS/i\\
+SHELL = /bin/bash' \
+/home/opensrf/Evergreen/Open-ILS/examples/crontab.example > /home/opensrf/crontab
crontab /home/opensrf/crontab
echo "Complete at: \$(date)"