Browse Source

numberic values in some template variables converted to integers

Xabier de Zuazo 11 years ago
parent
commit
7deed9e3e5

+ 7 - 7
templates/default/conf.d/10-mail.conf.erb

@@ -170,19 +170,19 @@
 # to make sure that users can't log in as daemons or other system users.
 # Note that denying root logins is hardcoded to dovecot binary and can't
 # be done even if first_valid_uid is set to 0.
-<%= Dovecot::Conf.attribute(@conf, 'first_valid_uid', '500') %>
-<%= Dovecot::Conf.attribute(@conf, 'last_valid_uid', '0') %>
+<%= Dovecot::Conf.attribute(@conf, 'first_valid_uid', 500) %>
+<%= Dovecot::Conf.attribute(@conf, 'last_valid_uid', 0) %>
 
 # Valid GID range for users, defaults to non-root/wheel. Users having
 # non-valid GID as primary group ID aren't allowed to log in. If user
 # belongs to supplementary groups with non-valid GIDs, those groups are
 # not set.
-<%= Dovecot::Conf.attribute(@conf, 'first_valid_gid', '1') %>
-<%= Dovecot::Conf.attribute(@conf, 'last_valid_gid', '0') %>
+<%= Dovecot::Conf.attribute(@conf, 'first_valid_gid', 1) %>
+<%= Dovecot::Conf.attribute(@conf, 'last_valid_gid', 0) %>
 
 # Maximum allowed length for mail keyword name. It's only forced when trying
 # to create new keywords.
-<%= Dovecot::Conf.attribute(@conf, 'mail_max_keyword_length', '50') %>
+<%= Dovecot::Conf.attribute(@conf, 'mail_max_keyword_length', 50) %>
 
 # ':' separated list of directories under which chrooting is allowed for mail
 # processes (ie. /var/mail will allow chrooting to /var/mail/foo/bar too).
@@ -304,7 +304,7 @@
 
 # If mbox size is smaller than this (e.g. 100k), don't write index files.
 # If an index file already exists it's still read, just not updated.
-<%= Dovecot::Conf.attribute(@conf, 'mbox_min_index_size', '0') %>
+<%= Dovecot::Conf.attribute(@conf, 'mbox_min_index_size', 0) %>
 
 ##
 ## mdbox-specific settings
@@ -315,7 +315,7 @@
 
 # Maximum dbox file age until it's rotated. Typically in days. Day begins
 # from midnight, so 1d = today, 2d = yesterday, etc. 0 = check disabled.
-<%= Dovecot::Conf.attribute(@conf, 'mdbox_rotate_interval', '0') %>
+<%= Dovecot::Conf.attribute(@conf, 'mdbox_rotate_interval', 0) %>
 
 # When creating new mdbox files, immediately preallocate their size to
 # mdbox_rotate_size. This setting currently works only in Linux with some

+ 1 - 1
templates/default/conf.d/10-ssl.conf.erb

@@ -35,7 +35,7 @@
 # How often to regenerate the SSL parameters file. Generation is quite CPU
 # intensive operation. The value is in hours, 0 disables regeneration
 # entirely.
-<%= Dovecot::Conf.attribute(@conf, 'ssl_parameters_regenerate', '168') %>
+<%= Dovecot::Conf.attribute(@conf, 'ssl_parameters_regenerate', 168) %>
 
 # SSL ciphers to use
 <%= Dovecot::Conf.attribute(@conf, 'ssl_cipher_list', 'ALL:!LOW:!SSLv2:!EXP:!aNULL') %>