# File httpd/lib/symbiosis/config_files/apache.rb, line 46 def enabled?(fn = nil) fn = self.filename.sub("sites-available","sites-enabled") if fn.nil? # # Make sure the file exists, and that it is a symlink pointing to our # config file # if File.symlink?(fn) ln = File.readlink(fn) unless ln =~ /^\// ln = File.join(File.dirname(fn),ln) end return File.expand_path(ln) == self.filename end # # FIXME: should probably check at this point to see if any files point # back to the config, or if any file contains the configuration for # this domain. # # # Otherwise return false # false end