17528: Set ready=0 if config is incomplete/missing during install.
authorTom Clegg <tom@curii.com>
Thu, 15 Apr 2021 20:17:03 +0000 (16:17 -0400)
committerTom Clegg <tom@curii.com>
Thu, 15 Apr 2021 20:17:03 +0000 (16:17 -0400)
Reverts accidental change.

Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>

build/rails-package-scripts/postinst.sh

index 766481116b93229067f1feed46407b669c5ac7d8..bcd7a27c85125c729fb304ef7a2e70d105950044 100644 (file)
@@ -230,7 +230,9 @@ configure_version() {
       # warn about config errors (deprecated/removed keys from
       # previous version, etc)
       run_and_report "Checking configuration for completeness" \
-                     $COMMAND_PREFIX bundle exec rake config:check || true
+                     $COMMAND_PREFIX bundle exec rake config:check || APPLICATION_READY=0
+  else
+      APPLICATION_READY=0
   fi
 
   chown -R "$WWW_OWNER:" $RELEASE_PATH/tmp