Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Commit

Permalink
crono: don't let crono run the migrations
Browse files Browse the repository at this point in the history
In production it might happen that the crono process is started before
the portus process (e.g. a containerized setup with docker-compose or
Kubernetes). In such a case, we have to be sure that the process running
the migration is the main Portus one, because otherwise the `init`
script from portus won't be able to run successfully, and thus it won't
ever run `rake db:seed` on initialization.

Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
  • Loading branch information
mssola committed Jul 31, 2017
1 parent 3a6eeda commit 7fdfe96
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/crono
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ _timeout=150
_count=0
_status=0

export SKIP_MIGRATION=true

# Use portusctl if available. When installing the RPM, bundle might be in an
# unknown path otherwise.
if stat /usr/sbin/portusctl &> /dev/null; then
Expand Down

0 comments on commit 7fdfe96

Please sign in to comment.