Browse Source

fixed permission issue with site create

bugfixes
harshadyeola 10 years ago
parent
commit
b5b075a695
  1. 5
      ee/core/fileutils.py

5
ee/core/fileutils.py

@ -141,6 +141,8 @@ class EEFileUtils():
try:
Log.debug(self, "Changing ownership of {0}, Userid:{1},Groupid:{2}"
.format(path, userid, groupid))
# Change inside files/directory permissions only if recursive flag
# is set
if recursive:
for root, dirs, files in os.walk(path):
for d in dirs:
@ -149,8 +151,7 @@ class EEFileUtils():
for f in files:
os.chown(os.path.join(root, f), userid,
groupid)
else:
os.chown(path, userid, groupid)
os.chown(path, userid, groupid)
except shutil.Error as e:
Log.debug(self, "{0}".format(e))
Log.error(self, "Unable to change owner : {0}".format(path))

Loading…
Cancel
Save