Upgrade the helm charts to Arvados 2.1.0.
[arvados-k8s.git] / charts / arvados / config / api-server / 90-init-db.sh
index cc16372c391c9795742605f47290445a75d51c4c..c488c2e3f81ad20a8c7196ed92130c7966ffc381 100644 (file)
@@ -22,6 +22,8 @@ prepare_database() {
   if [[ -f "/create-workbench-api-client.rb" ]]; then
     # This is the API server
     cd /var/www/arvados-api/current
+    # The script/rails command in the Arvados 2.1.0 release has an incorrect require path.
+    sed -i 's|rails/commands/server|rails/command|' script/rails
     bundle exec script/create_superuser_token.rb {{ .Values.superUserSecret }}
     cd script
     bundle exec get_anonymous_user_token.rb -t {{ .Values.anonymousUserSecret }} || true