JasonKing-pulp 0.8.6 → 0.8.7
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/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
|
|