From: Barış Metin Date: Wed, 1 Sep 2010 08:47:27 +0000 (+0000) Subject: check before reading the configuration. X-Git-Tag: nodeconfig-5.0-3~5 X-Git-Url: http://git.onelab.eu/?p=nodeconfig.git;a=commitdiff_plain;h=d7d849a57fb7d6519f81d471ca36e11ba189e92b check before reading the configuration. this fails when myplc installation doesn't have sfa installed. --- diff --git a/PlanetLabConf/sfa_config.php b/PlanetLabConf/sfa_config.php index 851128e..fee3dde 100755 --- a/PlanetLabConf/sfa_config.php +++ b/PlanetLabConf/sfa_config.php @@ -8,7 +8,9 @@ $config_directory = "/etc/sfa/"; $default_name = "sfa_component_config"; $file_name = $config_directory . $default_name; -readfile($file_name); +if (file_exists($filename)) { + readfile($file_name); +} exit(); ?>