Bug #310 » 0001-Fixed-extras-dbmigrate-to-actually-do-something.patch
extras/dbmigrate | ||
---|---|---|
WANTED_USER=${1:-'foreman'}
|
||
if [ $USERNAME = $WANTED_USER ]; then
|
||
cd && echo /usr/bin/rake db:migrate RAILS_ENV=production
|
||
cd && /usr/bin/rake db:migrate RAILS_ENV=production
|
||
else
|
||
echo "$0 has to be run as user ${WANTED_USER}!"
|
||
exit 1
|