X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=configure.pl;h=d9a1722a334187da4002d7c884a6b94a2c7a8cd2;hb=2a19fd178108b0898e79d2b8908236429ca4c6a3;hp=dddb7d711328e68a10f84fc6e44e890ace1dc98b;hpb=c91d12b33bf294fd6e4728eeb3e582efc359acc5;p=BackupPC.git diff --git a/configure.pl b/configure.pl index dddb7d7..d9a1722 100755 --- a/configure.pl +++ b/configure.pl @@ -461,7 +461,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");