1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

Now .htaccess can be precreated and owned by oneadmin

(cherry picked from commit baa6a8037178eaf4fec7fa69ba5a77876afd01d9)
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