morhekil-ipcauthpipe 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/config.yml +4 -2
- data/ipcauthpipe.gemspec +1 -1
- data/lib/models/member.rb +5 -1
- metadata +1 -1
data/config.yml
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
database:
|
2
2
|
adapter: mysql
|
3
3
|
database: pokerru_mail
|
4
|
-
username:
|
4
|
+
username: toor
|
5
5
|
password: Awycehe2iS
|
6
|
-
socket: /
|
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.
|
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
|
-
|
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
|