Build local image for updates in apptask
This commit is contained in:
@@ -2177,6 +2177,11 @@ async function updateApp(app, data, auditSource) {
|
||||
const hasSso = !!updateConfig.manifest.addons?.proxyAuth || !!updateConfig.manifest.addons?.ldap || !!manifest.addons?.oidc;
|
||||
if (!hasSso && app.sso) values.sso = false; // turn off sso flag, if the update removes sso options
|
||||
|
||||
// if we have a sourceArchive rename it to appId to be picked up later in the apptask
|
||||
if (data.sourceArchiveFilePath) {
|
||||
if (!safe.fs.renameSync(data.sourceArchiveFilePath, `/tmp/${appId}.tar.gz`)) throw new BoxError(BoxError.FS_ERROR, 'Error moving source archive');
|
||||
}
|
||||
|
||||
const task = {
|
||||
args: { updateConfig },
|
||||
values
|
||||
|
||||
Reference in New Issue
Block a user