JasonKing-pulp 0.8.6 → 0.8.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/passenger/config.rb +6 -3
- metadata +1 -1
data/lib/passenger/config.rb
CHANGED
@@ -278,9 +278,12 @@ module Passenger
|
|
278
278
|
end
|
279
279
|
|
280
280
|
def ensure_dir(d)
|
281
|
-
|
282
|
-
|
283
|
-
|
281
|
+
_dir = File.join(dir, d)
|
282
|
+
unless File.exists? _dir
|
283
|
+
_umask = File.umask(022)
|
284
|
+
Dir.mkdir(_dir)
|
285
|
+
File.umask(_umask)
|
286
|
+
end
|
284
287
|
_dir
|
285
288
|
end
|
286
289
|
|