install: pdm: fix owner and permissions of config file hierachy

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2024-12-16 22:37:04 +01:00
parent 2d084ae23b
commit fdb81c1a28

View File

@ -1464,7 +1464,9 @@ _EOD
file_write_all("$targetdir/$user_cfg_fn", "user: root\@pam\n\temail ${mailto}\n"); file_write_all("$targetdir/$user_cfg_fn", "user: root\@pam\n\temail ${mailto}\n");
chroot_chown($targetdir, $base_cfg_path, user => 'www-data', recursive => 1); chroot_chown($targetdir, $base_cfg_path, user => 'www-data', recursive => 1);
chroot_chmod($targetdir, $base_cfg_path, mode => '0700'); chroot_chmod($targetdir, $base_cfg_path, mode => '01770');
chroot_chmod($targetdir, "$base_cfg_path/access", mode => '0750');
chroot_chown($targetdir, "$base_cfg_path/access/user.cfg", user => 'root', group => 'www-data');
} }
}; };