Add hack for broken app backup tarballs

This commit is contained in:
Girish Ramakrishnan
2015-08-31 18:48:26 -07:00
parent ba690c6346
commit 712ada940e
2 changed files with 2 additions and 1 deletions

View File

@@ -140,6 +140,7 @@ cat > "${CONFIG_DIR}/cloudron.conf" <<CONF_END
"port": 3306,
"name": "box"
},
"restoredFromUrl": "${arg_restore_url}",
"backupKey": "${arg_backup_key}",
"aws": ${arg_aws}
}

View File

@@ -94,7 +94,7 @@ function getRestoreUrl(backupId, callback) {
id: backupId,
url: result.url,
sessionToken: result.sessionToken,
backupKey: config.backupKey()
backupKey: config.get('restoredFromUrl') && config.get('restoredFromUrl').indexOf('v0.0.39') > 0 ? '' : config.backupKey()
};
debug('getRestoreUrl: ', obj);