From bf605dcd9b136e5ce0a98bcdf07ecbaab58b036f Mon Sep 17 00:00:00 2001 From: Kasra Bigdeli Date: Sat, 3 Aug 2019 16:30:44 -0400 Subject: [PATCH] Reordered installation steps --- src/utils/CaptainInstaller.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils/CaptainInstaller.ts b/src/utils/CaptainInstaller.ts index 25be711..b4fe919 100644 --- a/src/utils/CaptainInstaller.ts +++ b/src/utils/CaptainInstaller.ts @@ -264,9 +264,6 @@ export function install() { .then(function() { return checkPortOrThrow(myIp4, 3000) }) - .then(function() { - return backupManger.checkAndPrepareRestoration() - }) .then(function() { const imageName = CaptainConstants.configs.nginxImageName console.log('Pulling: ' + imageName) @@ -277,6 +274,9 @@ export function install() { console.log('Pulling: ' + imageName) return DockerApi.get().pullImage(imageName, undefined) }) + .then(function() { + return backupManger.checkAndPrepareRestoration() + }) .then(function() { return DockerApi.get().initSwarm(myIp4) })