Skip to content

Commit

Permalink
Fixes for version 0.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
sts committed May 6, 2012
1 parent c17eb3c commit ae8113a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/smailr.rb
Expand Up @@ -6,7 +6,7 @@
require 'fileutils' require 'fileutils'


module Smailr module Smailr
VERSION = '0.5.1' VERSION = '0.5.2'


autoload :Model, 'smailr/model' autoload :Model, 'smailr/model'
autoload :Domain, 'smailr/domain' autoload :Domain, 'smailr/domain'
Expand Down Expand Up @@ -50,7 +50,7 @@ def self.setup
# Only install configuration if needed # Only install configuration if needed
if config["exim_path"] if config["exim_path"]
if File.writable?(config["exim_path"]) if File.writable?(config["exim_path"])
FileUtils.cp File.expand_path("/exim4.conf", prefix), config["exim_path"] FileUtils.cp File.expand_path("exim4.conf", prefix), config["exim_path"]
else else
say_error "Cannot copy Exim configuration to #{config["exim_path"]} - permission denied or path doesn't exist." say_error "Cannot copy Exim configuration to #{config["exim_path"]} - permission denied or path doesn't exist."
exit 1 exit 1
Expand All @@ -59,8 +59,8 @@ def self.setup


if config["dovecot_path"] if config["dovecot_path"]
if File.writable?(config["dovecot_path"]) if File.writable?(config["dovecot_path"])
FileUtils.cp File.expand_path("/dovecot.conf", prefix), config["dovecot_path"] FileUtils.cp File.expand_path("dovecot.conf", prefix), config["dovecot_path"]
FileUtils.cp File.expand_path("/dovecot-sql.conf", prefix), config["dovecot_path"] FileUtils.cp File.expand_path("dovecot-sql.conf", prefix), config["dovecot_path"]
else else
say_error "Cannot copy Dovecot configuration to #{config["dovecot_path"]} - permission denied or path doesn't exist." say_error "Cannot copy Dovecot configuration to #{config["dovecot_path"]} - permission denied or path doesn't exist."
exit 1 exit 1
Expand Down

0 comments on commit ae8113a

Please sign in to comment.