X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/2ec2c8ed2c5db174f3a83dc257fa4c4b3190f47b..f42ee7c19b794e25db30051b1dfc4bee83929bcd:/build/rails-package-scripts/README.md diff --git a/build/rails-package-scripts/README.md b/build/rails-package-scripts/README.md index 3a93c31af3..6ac2539f8e 100644 --- a/build/rails-package-scripts/README.md +++ b/build/rails-package-scripts/README.md @@ -1,3 +1,7 @@ +[//]: # Copyright (C) The Arvados Authors. All rights reserved. +[//]: # +[//]: # SPDX-License-Identifier: AGPL-3.0 + When run-build-packages.sh builds a Rails package, it generates the package's pre/post-inst/rm scripts by concatenating: 1. package_name.sh, which defines variables about where package files live and some human-readable names about them. @@ -8,7 +12,6 @@ Since our build process is a tower of shell scripts, concatenating files seemed postinst.sh lets the early parts define a few hooks to control behavior: -* After it installs the core configuration files (database.yml, application.yml, and production.rb) to /etc/arvados/server, it calls setup_extra_conffiles. By default this is a noop function (in step2.sh). API server defines this to set up the old omniauth.rb conffile. +* After it installs the core configuration files (database.yml, application.yml, and production.rb) to /etc/arvados/server, it calls setup_extra_conffiles. By default this is a noop function (in step2.sh). * Before it restarts nginx, it calls setup_before_nginx_restart. By default this is a noop function (in step2.sh). API server defines this to set up the internal git repository, if necessary. -* $RAILSPKG_DATABASE_LOAD_TASK defines the Rake task to load the database. API server uses db:structure:load. SSO server uses db:schema:load. Workbench doesn't set this, which causes the postinst to skip all database work. -* If $RAILSPKG_SUPPORTS_CONFIG_CHECK != 1, it won't run the config:check rake task. SSO clears this flag (it doesn't have that task code). +* $RAILSPKG_DATABASE_LOAD_TASK defines the Rake task to load the database. API server uses db:structure:load. Workbench doesn't set this, which causes the postinst to skip all database work.