Compare commits

..

No commits in common. "39a1b51f7f550eb1e67ac9573dc2c2ca75e55c7c" and "56f0111d5f6844321b6fbf1b935054445ff5e0ea" have entirely different histories.

2 changed files with 0 additions and 38 deletions

View File

@ -260,33 +260,6 @@ async configUpdate(changes) {
}
}
// App Updater actions — each runs the locked-down `libreportal updater` CLI
// as a task. apply/rollback snapshot-before-update on the host side (DR).
async updaterCheck() {
try {
return await this.executeTask('updater_check', 'updater', 'libreportal updater check', 'Check for updates');
} catch (error) { throw new Error(`Failed to check for updates: ${error.message}`); }
}
async updaterApply(app) {
if (!app) throw new Error('No app specified');
try {
return await this.executeTask('updater_apply', app, `libreportal updater apply ${app}`, `Update ${app}`);
} catch (error) { throw new Error(`Failed to update ${app}: ${error.message}`); }
}
async updaterApplyAll(apps) {
try {
const list = (apps || '').toString();
const cmd = list ? `libreportal updater apply-all ${list}` : 'libreportal updater apply-all';
return await this.executeTask('updater_apply_all', 'updater', cmd, 'Update all apps');
} catch (error) { throw new Error(`Failed to update apps: ${error.message}`); }
}
async updaterRollback(app) {
if (!app) throw new Error('No app specified');
try {
return await this.executeTask('updater_rollback', app, `libreportal updater rollback ${app}`, `Roll back ${app}`);
} catch (error) { throw new Error(`Failed to roll back ${app}: ${error.message}`); }
}
/**
* Create a task object
*/

View File

@ -69,17 +69,6 @@ class TaskRouter {
case 'tool':
return await this.actions.runTool(params.appName, params.toolName, params.toolArgs, params.toolLabel);
// App Updater (features/updater) — version/CVE refresh + update/rollback,
// each routed to the locked-down `libreportal updater` CLI as a task.
case 'updater_check':
return await this.actions.updaterCheck();
case 'updater_apply':
return await this.actions.updaterApply(params.app);
case 'updater_apply_all':
return await this.actions.updaterApplyAll(params.apps);
case 'updater_rollback':
return await this.actions.updaterRollback(params.app);
default:
throw new Error(`Unknown action: ${action}`);
}