X-Git-Url: http://git.rot13.org/?p=BackupPC.git;a=blobdiff_plain;f=configure.pl;h=ec63ebbd8dcfdfedffbb7e8e08753eeba90f5052;hp=bb86691d3b34d2096134d31a0a77f1b212cd645b;hb=17dcbbebb871212f90b81bb97f8d1feb528bdc43;hpb=d13d57e035dac9362ca393991b978530402969b7 diff --git a/configure.pl b/configure.pl index bb86691..ec63ebb 100755 --- a/configure.pl +++ b/configure.pl @@ -467,7 +467,7 @@ foreach my $dir ( qw(bin doc # Create CGI image directory # foreach my $dir ( ($Conf{CgiImageDir}) ) { - next if ( $dir eq "" || -d $dir ); + next if ( $dir eq "" || -d "$DestDir$dir" ); mkpath("$DestDir$dir", 0, 0775); if ( !-d "$DestDir$dir" || !chown($Uid, $Gid, "$DestDir$dir") ) { die("Failed to create or chown $DestDir$dir");