1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-22 13:33:52 +03:00

Now .htaccess can be precreated and owned by oneadmin

(cherry picked from commit baa6a80371)
This commit is contained in:
Tino Vazquez 2011-09-23 13:26:07 +02:00
parent 6ba6619c93
commit 1b1ad95275

View File

@ -30,7 +30,8 @@ module OZones
end
# Let's check for file permissions
if !File.writable?(File.dirname(@file_path))
if !File.writable?(@file_path) and
!File.writable?(File.dirname(@file_path))
raise "#{@file_path} is not writable"
end
end