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:
parent
6ba6619c93
commit
1b1ad95275
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user