force fixing the chmod of directories

This commit is contained in:
Solene Rapenne 2023-05-05 08:56:43 +02:00
parent b0fe5b34ae
commit 9adc8da925
1 changed files with 5 additions and 1 deletions

View File

@ -190,7 +190,11 @@ sub create_links {
# recursively create missing directories to hold files
# give ownership to the user and apply chmod 700
if ( ! -e $dirs ) {
make_path($dirs, { chmod => "0700", owner => $user });
make_path($dirs, { chmod => "0750", owner => $user });
# make_path doesn't seem trustable for setting chmod
# maybe an alpine/musl specific bug?
chmod 0750, $dirs;
}
if ( ! -e $old_file ) {