Bug #462 » 0001-Remove-absolute-paths-from-.-extras-dbmigrate-and-re.patch
extras/dbmigrate | ||
---|---|---|
#!/bin/sh
|
||
USERNAME=$(/usr/bin/id -un)
|
||
USERNAME=$(id -un)
|
||
WANTED_USER=${1:-'foreman'}
|
||
if [ $USERNAME = $WANTED_USER ]; then
|
||
cd && /usr/bin/rake db:migrate RAILS_ENV=production
|
||
cd && rake db:migrate RAILS_ENV=production
|
||
else
|
||
echo "$0 has to be run as user ${WANTED_USER}!"
|
||
exit 1
|