Исправлена ошибка при удалении пользователя с домашней директорией "/dev/null"

git-svn-id: http://svn.calculate.ru/calculate2/calculate-server/trunk@750 c91db197-33c1-4113-bf15-f8a5c547ca64
develop
asamoukin 16 years ago
parent ef36f305f2
commit ff3ae04e8b

@ -2004,7 +2004,8 @@ service"))
if resLdap[0][0][1].has_key('homeDirectory'):
#Домашняя директория пользователя
homeDir = resLdap[0][0][1]['homeDirectory'][0]
if backup and os.path.exists(homeDir) and os.listdir(homeDir):
if backup and os.path.exists(homeDir) and\
os.path.isdir(homeDir) and os.listdir(homeDir):
# Делаем сохранение домашней директории
if not self.backupDelUser(userName, 'unix/home',
homeDir, self):

Loading…
Cancel
Save