Leave note on when lastBackupId can be null

This commit is contained in:
Girish Ramakrishnan
2015-07-20 09:54:17 -07:00
parent 0285562133
commit 173efa6920
+2 -1
View File
@@ -604,7 +604,8 @@ function backup(app, callback) {
// restore is also called for upgrades and infra updates. note that in those cases it is possible there is no backup
function restore(app, callback) {
// we don't have a backup, same as re-install
// we don't have a backup, same as re-install. this allows us to install from install failures (update failures always
// have a backupId)
if (!app.lastBackupId) return install(app, callback);
async.series([