Skip to content

Commit efc1c33

Browse files
committed
Default arangosync docker image to arangodb docker image
1 parent ea2772c commit efc1c33

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

main.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,13 +565,19 @@ func mustPrepareService(generateAutoKeyFile bool) (*service.Service, service.Boo
565565
if !service.ServiceMode(mode).SupportsArangoSync() {
566566
log.Fatalf("ArangoSync is not supported in combination with mode '%s'\n", mode)
567567
}
568-
// Check arangosync executable
569568
if !runningInDocker {
569+
// Check arangosync executable
570570
if _, err := os.Stat(arangoSyncPath); os.IsNotExist(err) {
571571
log.Errorf("Cannot find arangosync (expected at %s).", arangoSyncPath)
572572
log.Fatal("Please install ArangoSync locally or run the ArangoDB starter in docker (see README for details).")
573573
}
574574
log.Debugf("Using %s as default arangosync executable.", arangoSyncPath)
575+
} else {
576+
// Check arangosync docker image
577+
if dockerArangoSyncImage == "" {
578+
// Default to arangod docker image
579+
dockerArangoSyncImage = dockerArangodImage
580+
}
575581
}
576582
if startMaster := optionalBool(startSyncMaster, true); startMaster {
577583
if syncMasterKeyFile == "" {

0 commit comments

Comments
 (0)