The rake task to set up the database can't be run from a script due to https://github.com/gitlabhq/gitlabhq/pull/2650