Actively remove initializers/omniauth.rb in our rails package for the
authorWard Vandewege <ward@curii.com>
Wed, 19 Aug 2020 13:16:07 +0000 (09:16 -0400)
committerWard Vandewege <ward@curii.com>
Wed, 19 Aug 2020 13:16:07 +0000 (09:16 -0400)
API server. It has been a dangling symlink for a long time, and Rails
5.2 is no longer forgiving of that.

refs #16470

Arvados-DCO-1.1-Signed-off-by: Ward Vandewege <ward@curii.com>

build/rails-package-scripts/arvados-api-server.sh

index 2504ff85daf94c2fde7091d227b7937c8eafcd6b..027383ab4f62294aa9661b5e9ce1651457f3bf1a 100644 (file)
@@ -11,6 +11,11 @@ CONFIG_PATH=/etc/arvados/api
 DOC_URL="http://doc.arvados.org/install/install-api-server.html#configure"
 
 RAILSPKG_DATABASE_LOAD_TASK=db:structure: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.
+  rm -f $RELEASE_PATH/config/initializers/omniauth.rb
+}
 
 setup_before_nginx_restart() {
   # initialize git_internal_dir