Add hack for broken app backup tarballs
This commit is contained in:
@@ -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}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user