From 137ccb738393664db888f66b01095785ef87030f Mon Sep 17 00:00:00 2001 From: Florian Ludwig Date: Sun, 26 Jul 2026 17:07:49 +0200 Subject: [PATCH] fix(docker): list the apps after `apps-writable` is a known apps path `app:list` was queried before `apps.config.php` registers `apps-writable` as an apps path, so a bind mounted app is missing from the list. It is then not found in `shipped.json` either and ends up in the app store branch, where `app:install --force` exits non-zero with " already installed". Signed-off-by: Florian Ludwig --- lib/docker.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/docker.ts b/lib/docker.ts index 1cafa8c6..1e6afaa5 100644 --- a/lib/docker.ts +++ b/lib/docker.ts @@ -261,10 +261,6 @@ export async function configureNextcloud(apps = ['viewer'], vendoredBranch?: str } console.log('│ └─ OK !') - // Build app list - const { stdout: json } = await runOcc(['app:list', '--output', 'json'], { container }) - const applist = JSON.parse(json) - console.log('├─ Using "apps-writable" folder for mounted apps') await runExec(['mkdir', '-p', '/var/www/html/apps-writable'], { container }) await runExec(['chown', 'www-data:www-data', '/var/www/html/apps-writable'], { container, user: 'root' }) @@ -288,6 +284,10 @@ export async function configureNextcloud(apps = ['viewer'], vendoredBranch?: str stream.finalize() await container.putArchive(stream, { path: '/var/www/html/config' }) + // Build app list, only now that "apps-writable" is a known apps path so that mounted apps show up + const { stdout: json } = await runOcc(['app:list', '--output', 'json'], { container }) + const applist = JSON.parse(json) + // Enable apps and give status for (const app of apps) { if (app in applist.enabled) {