Revision dae8ff26
Added by Jochen Schalanda almost 14 years ago
- ID dae8ff262e14fdf3c6fc686aac36af8cbb09de5d
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
|
Also available in: Unified diff
fixes #310 - Debian Initscript sometimes exits with return code >0 although no error occurred