Commit 29d7bc0f authored by Daniel STAN's avatar Daniel STAN

send_message: fix user

fix this fucking user.
parent a0950929
......@@ -32,6 +32,8 @@ if __name__ == '__main__':
args = parser.parse_args(sys.argv[1:])
login = getpass.getuser()
if login == 'respbats':
login = os.getenv('SUDO_USER')
ldap = lc_ldap.shortcuts.lc_ldap_readonly()
adh = ldap.search(u'uid=%s' % login)[0]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment