morhekil-ipcauthpipe 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/config.yml CHANGED
@@ -1,9 +1,9 @@
1
1
  database:
2
2
  adapter: mysql
3
3
  database: pokerru_mail
4
- username: root
4
+ username: toor
5
5
  password: Awycehe2iS
6
- socket: /var/run/mysqld/mysqld.sock
6
+ socket: /tmp/mysql.sock
7
7
 
8
8
  log:
9
9
  level: debug
@@ -15,5 +15,7 @@ invision:
15
15
  mail:
16
16
  address_format: %s@poker.ru
17
17
  owner_uid: 2001
18
+ owner_name: vmail
18
19
  owner_gid: 1000
20
+ owner_group: virtualusers
19
21
  home_dir: /tmp/%s
data/ipcauthpipe.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "ipcauthpipe"
3
- s.version = "0.2.1"
3
+ s.version = "0.2.2"
4
4
  s.date = "2009-06-11"
5
5
  s.summary = "Implementation of Courier's authpipe protocol over Invision Power Board / Converge."
6
6
  s.description = "ipcauthpipe gem implements Courier's authpipe protocol to interface Courier POP/IMAP server with Invision Power Board / Converge members database."
data/lib/models/member.rb CHANGED
@@ -18,7 +18,11 @@ class Member < ActiveRecord::Base
18
18
 
19
19
  # Create user's home dir if it's not present
20
20
  def create_homedir
21
- FileUtils.mkdir(member.homedir, :mode => '0755') unless File.exists?(member.homedir)
21
+ unless File.exists?(homedir)
22
+ FileUtils.mkdir_p(homedir, :mode => 0750)
23
+ FileUtils.chown(IpcAuthpipe::config.mail['owner_name'], IpcAuthpipe::config.mail['owner_group'], "#{homedir}/..")
24
+ FileUtils.chown(IpcAuthpipe::config.mail['owner_name'], IpcAuthpipe::config.mail['owner_group'], homedir)
25
+ end
22
26
  end
23
27
 
24
28
  def to_authpipe
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: morhekil-ipcauthpipe
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oleg Ivanov