mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-19 03:12:55 +09:00
Now .htaccess can be precreated and owned by oneadmin
This commit is contained in:
1 parent
bfa3c0bd1a
commit
baa6a80371
1 file changed
+2
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user