From 3aa3a9f57ddb5728d9c32418aa18a97f83449742 Mon Sep 17 00:00:00 2001 From: Sahil Phule Date: Wed, 28 May 2025 20:43:56 -0400 Subject: [PATCH] Update app.ts --- packages/umbreld/source/modules/apps/app.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/umbreld/source/modules/apps/app.ts b/packages/umbreld/source/modules/apps/app.ts index 35fd5a28e7..48bc23f450 100644 --- a/packages/umbreld/source/modules/apps/app.ts +++ b/packages/umbreld/source/modules/apps/app.ts @@ -241,17 +241,15 @@ export default class App { async uninstall() { this.state = 'uninstalling' - await pRetry(() => appScript(this.#umbreld, 'stop', this.id), { + await pRetry(() => appScript(this.#umbreld, 'uninstall', this.id), { onFailedAttempt: (error) => { this.logger.error( - `Attempt ${error.attemptNumber} stopping app ${this.id} failed. There are ${error.retriesLeft} retries left.`, + `Attempt ${error.attemptNumber} uninstalling app ${this.id} failed. There are ${error.retriesLeft} retries left.`, error, ) }, retries: 2, }) - await appScript(this.#umbreld, 'nuke-images', this.id) - await fse.remove(this.dataDirectory) await this.#umbreld.store.getWriteLock(async ({get, set}) => { let apps = (await get('apps')) || []