mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
Merge branch 'ent-13254-cli-pfms-comando-disable_group-elimina-la-configuracion-remota-del-agente-en-ubuntu-22' into 'develop'
Ent-13254-cli-pfms-comando-disable_group-elimina-la-configuracion-remota-del-agente-en-ubuntu-22 See merge request artica/pandorafms!7112
This commit is contained in:
commit
c93fc468a9
@ -612,6 +612,7 @@ sub set_file_permissions($$;$) {
|
||||
my $uid = getpwnam($pa_config->{'user'});
|
||||
my $gid = getgrnam($pa_config->{'group'});
|
||||
my $perm = $grants & (~oct($pa_config->{'umask'}));
|
||||
$gid = getgrnam("www-data") if (!defined($gid));
|
||||
|
||||
chown $uid, $gid, $file;
|
||||
chmod ( $perm, $file );
|
||||
|
Loading…
x
Reference in New Issue
Block a user