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,
|
"port": 3306,
|
||||||
"name": "box"
|
"name": "box"
|
||||||
},
|
},
|
||||||
|
"restoredFromUrl": "${arg_restore_url}",
|
||||||
"backupKey": "${arg_backup_key}",
|
"backupKey": "${arg_backup_key}",
|
||||||
"aws": ${arg_aws}
|
"aws": ${arg_aws}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ function getRestoreUrl(backupId, callback) {
|
|||||||
id: backupId,
|
id: backupId,
|
||||||
url: result.url,
|
url: result.url,
|
||||||
sessionToken: result.sessionToken,
|
sessionToken: result.sessionToken,
|
||||||
backupKey: config.backupKey()
|
backupKey: config.get('restoredFromUrl') && config.get('restoredFromUrl').indexOf('v0.0.39') > 0 ? '' : config.backupKey()
|
||||||
};
|
};
|
||||||
|
|
||||||
debug('getRestoreUrl: ', obj);
|
debug('getRestoreUrl: ', obj);
|
||||||
|
|||||||
Reference in New Issue
Block a user