#!/bin/bash

# Post-install/update specifics for Focalboard — dispatched by appUpdateSpecifics.
appUpdateSpecifics_focalboard() {
    local app_name="$1"
    # 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.
    # Setting shouldrestart (not local) requests the restart in appUpdateSpecifics.
    runOwnership app-data-nobody "$app_name"
    shouldrestart="true"
}
