X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/505c8fa50631201e289cc55230d46fdf52fa2055..ed268e53d2014ce5c49301559a46e67660f1404c:/build/rails-package-scripts/arvados-api-server.sh diff --git a/build/rails-package-scripts/arvados-api-server.sh b/build/rails-package-scripts/arvados-api-server.sh index 027383ab4f..a0e356ce32 100644 --- a/build/rails-package-scripts/arvados-api-server.sh +++ b/build/rails-package-scripts/arvados-api-server.sh @@ -10,7 +10,7 @@ INSTALL_PATH=/var/www/arvados-api CONFIG_PATH=/etc/arvados/api DOC_URL="http://doc.arvados.org/install/install-api-server.html#configure" -RAILSPKG_DATABASE_LOAD_TASK=db:structure:load +RAILSPKG_DATABASE_LOAD_TASK=db:schema:load setup_extra_conffiles() { # Rails 5.2 does not tolerate dangling symlinks in the initializers directory, and this one # can still be there, left over from a previous version of the API server package. @@ -21,7 +21,7 @@ setup_before_nginx_restart() { # initialize git_internal_dir # usually /var/lib/arvados/internal.git (set in application.default.yml ) if [ "$APPLICATION_READY" = "1" ]; then - GIT_INTERNAL_DIR=$($COMMAND_PREFIX bundle exec rake config:dump 2>&1 | grep GitInternalDir | awk '{ print $2 }' |tr -d '"') + GIT_INTERNAL_DIR=$($COMMAND_PREFIX bin/rake config:dump 2>&1 | grep GitInternalDir | awk '{ print $2 }' |tr -d '"') if [ ! -e "$GIT_INTERNAL_DIR" ]; then run_and_report "Creating git_internal_dir '$GIT_INTERNAL_DIR'" \ mkdir -p "$GIT_INTERNAL_DIR"