From: rettenbe Date: Tue, 9 Dec 2008 16:08:53 +0000 (+0000) Subject: fixing save fai log problem X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=bbbc4e38cd943253fcf62c800f6d0944ffc77e23;p=gosa.git fixing save fai log problem git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13214 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-si/gosa-si-client b/gosa-si/gosa-si-client index 277d2555e..fce41df0a 100755 --- a/gosa-si/gosa-si-client +++ b/gosa-si/gosa-si-client @@ -893,11 +893,16 @@ sub save_fai_log { my ($fai_log_dir) = @_ ; my $FAI_DIR; + # Directory for log files after a softupdate my $log_dir = File::Spec->catdir($fai_log_dir, "localhost/last"); if (not -d $log_dir) { - daemon_log("ERROR: cannot open directory $log_dir", 1); - return; + # Directory for log files after a new installation + $log_dir = "/tmp/fai"; + if (not -d $log_dir) { + daemon_log("ERROR: cannot open directory $log_dir", 1); + return; + } } opendir($FAI_DIR, "$log_dir");