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 <noreply@anthropic.com> Signed-off-by: librelad <librelad@digitalangels.vip>
This commit is contained in:
parent
9e4ebdf360
commit
d0ec43e3ca
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user