unregister bugfix

This commit is contained in:
edip 2018-11-16 10:36:07 +03:00
parent 28fec709b7
commit ac1a25cb0d
2 changed files with 3 additions and 1 deletions

View file

@ -152,7 +152,7 @@ class Messaging(object):
def unregister_msg(self):
user_name = os.getlogin()
user_name = self.db_service.select_one_result('session', 'username')
self.logger.debug('User : ' + str(user_name))

View file

@ -357,6 +357,8 @@ class Registration:
self.unregister()
self.logger.info('Purge ldap packages')
Util.execute("sudo apt purge libpam-ldap libnss-ldap ldap-utils -y")
#self.logger.info('Purge ahenk packages')
#Util.execute("sudo apt purge ahenk ahenk-* -y")
Util.execute("sudo apt autoremove -y")
self.change_configs_after_purge()
self.logger.info('purging successfull')