|
|
|
@ -5334,11 +5334,10 @@ gettext -d cl_template "$*"
|
|
|
|
|
self.functObj.currentBelong,
|
|
|
|
|
self.functObj.currentBelongSlot)
|
|
|
|
|
tUid, tGid = getModeFile(applyDir, mode="owner")
|
|
|
|
|
if (os.getuid(), os.getgid()) != (tUid, tGid):
|
|
|
|
|
if (self.uid, self.gid) != (tUid, tGid):
|
|
|
|
|
if not self.chownConfDir(applyDir, self.uid, self.gid,
|
|
|
|
|
templateDirFile):
|
|
|
|
|
return "", False, []
|
|
|
|
|
|
|
|
|
|
else:
|
|
|
|
|
self.changedFiles.addObj(applyDir, ChangedFiles.DIR_CREATED,
|
|
|
|
|
self.functObj.currentBelong,
|
|
|
|
@ -5898,7 +5897,7 @@ gettext -d cl_template "$*"
|
|
|
|
|
# пользователя по умолчанию (переменная шаблона ur_login)
|
|
|
|
|
if os.path.exists(pathOldFile):
|
|
|
|
|
tUid, tGid = getModeFile(pathOldFile, mode="owner")
|
|
|
|
|
if (os.getuid(), os.getgid()) != (tUid, tGid):
|
|
|
|
|
if (self.uid, self.gid) != (tUid, tGid):
|
|
|
|
|
# Изменяем владельца файла
|
|
|
|
|
if not self.chownConfFile(
|
|
|
|
|
pathOldFile, self.uid, self.gid, nameFileTemplate,
|
|
|
|
|