Project

General

Profile

Feature #299 » 0001-Added-extras-dbmigrate-which-tests-for-a-specific-us.patch

Patch to add extras/dbmigrate - Jochen Schalanda, 06/05/2010 06:56 AM

View differences:

extras/dbmigrate
#!/bin/sh
USERNAME=$(/usr/bin/id -un)
WANTED_USER=${1:-'foreman'}
if [ $USERNAME = $WANTED_USER ]; then
cd && echo /usr/bin/rake db:migrate RAILS_ENV=production
else
echo "$0 has to be run as user ${WANTED_USER}!"
exit 1
fi
(2-2/3)