From d0ec43e3cabe5bb4ea25f50d9c3a280e2caf6a43 Mon Sep 17 00:00:00 2001 From: librelad Date: Sat, 23 May 2026 17:18:00 +0100 Subject: [PATCH] fix(focalboard): chown data dir to runtime uid so db persists Focalboard runs as nobody (65534) but fixPermissionsBeforeStart hands the app dir to the install user, so the server couldn't open its sqlite db on the newly mounted data dir. Chown data/ to 65534 in appUpdateSpecifics and restart. Co-Authored-By: Claude Opus 4.7 Signed-off-by: librelad --- scripts/app/app_update_specifics.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/app/app_update_specifics.sh b/scripts/app/app_update_specifics.sh index 4a796d3..b5082e4 100755 --- a/scripts/app/app_update_specifics.sh +++ b/scripts/app/app_update_specifics.sh @@ -28,6 +28,15 @@ appUpdateSpecifics() appDashyUpdateConf; fi + if [[ $app_name == "focalboard" ]]; then + # Focalboard runs as nobody (65534) and writes its sqlite db + uploads + # under its mounted data dir; fixPermissionsBeforeStart hands the dir to + # the install user, so give it to 65534 here or the server can't open + # the database. Restart so it picks the dir up. + sudo chown -R 65534:65534 "$containers_dir$app_name/data"; + shouldrestart="true"; + fi + if [[ $shouldrestart == "true" ]]; then dockerComposeRestart $app_name; fi