File errbit-update of Package errbit

#!/bin/sh
# if [ "x$(id -un)" != "xerrbit" ] ; then
#   echo "Please run this script as errbit user" 1>&2
#   exit 1
# fi
set -e
export RAILS_ENV="${RAILS_ENV:=production}"
cd /srv/www/vhosts/errbit/
test -e tmp/rebuild.txt || exit 0
/usr/bin/bundle.@RUBY_SUFFIX@ exec /usr/bin/rake.@RUBY_SUFFIX@ db:migrate
chown -R errbit:errbit tmp/
chmod -R go+rX public/{assets,plugins,uploads}
touch tmp/restart.txt
rm -f tmp/rebuild.txt
openSUSE Build Service is sponsored by