helpers2.1: wrmbgl

This commit is contained in:
Alexandre Aubin 2024-06-29 20:08:14 +02:00
parent 28603da4f1
commit d47c87e57d

View file

@ -257,7 +257,7 @@ _ynh_apply_default_permissions() {
if [ "$target" == "${install_dir:-}" ]
then
# Read the group from the install_dir manifest resource
local group="$(ynh_read_manifest '.resources.install_dir.group' | sed 's/null//g' | sed "s/__APP__/$app/g" | cut -f1 -d:)"
local group="$(ynh_read_manifest 'resources.install_dir.group' | sed 's/null//g' | sed "s/__APP__/$app/g" | cut -f1 -d:)"
if [[ -z "$group" ]]
then
# We set the group to www-data for webapps that do serve static assets, which therefore need to be readable by nginx ...