# cat fix_loading_of_empty_zonefile.patch
--- /var/www/scalr/app/src/Scalr/Net/Dns/Bind/Transports/LocalFs.php 2011-04-28 06:00:27.000000000 -0400
+++ /var/www/scalr/app/src/Scalr/Net/Dns/Bind/Transports/LocalFs.php.new 2011-04-28 06:00:19.000000000 -0400
@@ -27,11 +27,10 @@
public function getNamedConf()
{
- $retval = @file_get_contents("{$this->zonesPath}/zones.include");
- if (!$retval)
+ if (!@is_readable("{$this->zonesPath}/zones.include"))
throw new Exception("Cannot load zones.include file");
else
- return $retval;
+ return @file_get_contents("{$this->zonesPath}/zones.include");
}
public function setNamedConf($content)
+ create a simbol-link:
(WARN!!! Based on WHERE your named and SCALR installed.)
# ln -s /var/named/etc/namedb/client_zones /var/named/client_zonesso we have:
# ls -1l /var/named/ | grep client_zones
lrwxrwxrwx 1 root root 34 May 10 11:39 client_zones -> /var/named/etc/namedb/client_zones
No comments:
Post a Comment