Build local image for updates in apptask

This commit is contained in:
Johannes Zellner
2026-01-27 20:41:26 +01:00
parent fd0d65b8ce
commit a7929e142f
4 changed files with 26 additions and 8 deletions

View File

@@ -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