Do not crash if platform.start fails

With this change, the box code always starts up even if nginx fails,
docker fails etc.
This commit is contained in:
Girish Ramakrishnan
2018-11-10 18:21:15 -08:00
parent bd2b03876b
commit 6ec36c9605
4 changed files with 24 additions and 18 deletions

View File

@@ -131,7 +131,7 @@ function stopContainers(existingInfra, callback) {
}
function startApps(existingInfra, callback) {
if (existingInfra.version === 'none') {
if (existingInfra.version === 'none') { // cloudron is being restored from backup
debug('startApps: restoring installed apps');
apps.restoreInstalledApps(callback);
} else if (existingInfra.version !== infra.version) {