develop
asamoukin 16 years ago
parent b4593b17b0
commit 0ea63878d0

@ -746,9 +746,11 @@ install/6intranet" %(domain,servDn,unixDN,bindDn,bindPw)
"""Синхронизация пользовательских настроек"""
home = os.path.split(userHome)[1]
homeProfile = os.path.join(home,"." + userName)
print "HomeDirs",userHome,homeProfile
if sync == "login":
if os.path.exists(userHome) and os.listdir(userHome) and\
os.path.exists(homeProfile) and os.listdir(homeProfile):
print "START"
execStr = """/usr/bin/rsync --exclude="/.googleearth"
--exclude="/.rdesktop" --exclude="/.aMule" --exclude="*~" --exclude="/Home"
--exclude="/Web" --exclude="/Disks" --exclude="/Office" --exclude="/Factory"

Loading…
Cancel
Save