|
|
|
@ -1026,6 +1026,8 @@ install/6intranet" %(domain,servDn,unixDN,bindDn,bindPw)
|
|
|
|
|
return self.copyFilesToMovie(userHome)
|
|
|
|
|
return True
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def syncUser(self, userName, userHome, sync):
|
|
|
|
|
"""Синхронизация пользовательских настроек"""
|
|
|
|
|
home = os.path.split(userHome)[0]
|
|
|
|
@ -1036,16 +1038,17 @@ install/6intranet" %(domain,servDn,unixDN,bindDn,bindPw)
|
|
|
|
|
if os.path.exists(userHome) and\
|
|
|
|
|
os.path.exists(homeProfile):
|
|
|
|
|
execStr = '/usr/bin/rsync --delete-excluded --delete \
|
|
|
|
|
--exclude="/.googleearth" --exclude="/Home" --exclude="/Disks" --exclude="*~" \
|
|
|
|
|
--exclude="/FTP" --filter="P /.googleearth" --filter="P /Home" \
|
|
|
|
|
--filter="P /Disks" --filter="P /FTP" -a -x %s/ %s/' %(homeProfile,userHome)
|
|
|
|
|
--exclude="/.googleearth" --exclude="/.kde4/share/config/phonondevicesrc" \
|
|
|
|
|
--exclude="*~" --exclude="/Home" --exclude="/Disks" --exclude="/FTP" \
|
|
|
|
|
--filter="P /.googleearth" --filter="P /Home" --filter="P /Disks" \
|
|
|
|
|
--filter="P /FTP" -a -x %s/ %s/' %(homeProfile,userHome)
|
|
|
|
|
elif sync == "logout":
|
|
|
|
|
if os.path.exists(userHome) and os.listdir(userHome) and\
|
|
|
|
|
os.path.exists(homeProfile):
|
|
|
|
|
execStr = '/usr/bin/rsync --delete-excluded --delete \
|
|
|
|
|
--exclude="/.googleearth" --exclude="/Home" --exclude="/Disks" --exclude="/FTP"\
|
|
|
|
|
--exclude="*~" --exclude="/.kde4/cache-*" --exclude="/.kde4/tmp-*" \
|
|
|
|
|
--exclude="/.kde4/socket-*" \
|
|
|
|
|
--exclude="/.kde4/socket-*" --exclude="/.kde4/share/config/phonondevicesrc"\
|
|
|
|
|
-a -x %s/ %s/'%(userHome,homeProfile)
|
|
|
|
|
else:
|
|
|
|
|
self.printERROR(_("Method syncUser: option sync=%s incorrect")\
|
|
|
|
|