#!/bin/bash -x
if ! mount | grep solr/data ; then
rake sunspot:solr:stop RAILS_ENV=cucumber rake sunspot:solr:stop
sudo mount -t tmpfs tmpfs solr/data
rake sunspot:solr:start rake sunspot:solr:start RAILS_ENV=cucumber rake sunspot:reindex
else echo Solr/data is already on tmpfs fi