File tree 1 file changed +1
-15
lines changed
1 file changed +1
-15
lines changed Original file line number Diff line number Diff line change @@ -43,20 +43,6 @@ sub copy_files
43
43
}
44
44
}
45
45
46
- # Perform chmod on a set of files, taking into account wildcards
47
- sub chmod_files
48
- {
49
- my $mode = shift ;
50
- my $file_expr = shift ;
51
-
52
- my @all_files = glob $file_expr ;
53
- foreach my $file_entry (@all_files )
54
- {
55
- chmod $mode , $file_entry
56
- or die " Could not run chmod with mode $mode on $file_entry " ;
57
- }
58
- }
59
-
60
46
sub configure_test_server_for_ssl
61
47
{
62
48
my $tempdir = $_ [0];
@@ -82,7 +68,7 @@ sub configure_test_server_for_ssl
82
68
# Copy all server certificates and keys, and client root cert, to the data dir
83
69
copy_files(" ssl/server-*.crt" , " $tempdir /pgdata" );
84
70
copy_files(" ssl/server-*.key" , " $tempdir /pgdata" );
85
- chmod_files (0600, " $tempdir /pgdata/server-*.key" );
71
+ chmod (0600, glob " $tempdir /pgdata/server-*.key" ) or die $! ;
86
72
copy_files(" ssl/root+client_ca.crt" , " $tempdir /pgdata" );
87
73
copy_files(" ssl/root+client.crl" , " $tempdir /pgdata" );
88
74
You can’t perform that action at this time.
0 commit comments