#!/bin/bash

# Per-app structural permissions + ownership of the LibrePortal-managed files
# (config + compose) for every installed app. The actual chown/chmod run in the
# root-owned ownership helper (runOwnership) so the manager-run runtime needs no
# blanket sudo; the helper walks /docker/containers itself.
fixAppFolderPermissions()
{
    local silent_flag="$1"
    runOwnership app-perms
    if [ "$silent_flag" == "loud" ]; then
        checkSuccess "Updating app folder permissions."
    fi
}
