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

Commit 7fdfe96

Browse files
committed
crono: don't let crono run the migrations
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>
1 parent 3a6eeda commit 7fdfe96

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

bin/crono

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ _timeout=150
66
_count=0
77
_status=0
88

9+
export SKIP_MIGRATION=true
10+
911
# Use portusctl if available. When installing the RPM, bundle might be in an
1012
# unknown path otherwise.
1113
if stat /usr/sbin/portusctl &> /dev/null; then

0 commit comments

Comments
 (0)