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) })