관리-도구
편집 파일: user_destroy_pre
#!/opt/cloudlinux/venv/bin/python3 -bb # -*- coding: utf-8 -*- # Copyright © Cloud Linux GmbH & Cloud Linux Software, Inc 2010-2018 All Rights Reserved # # Licensed under CLOUD LINUX LICENSE AGREEMENT # http://cloudlinux.com/docs/LICENSE.TXT # import os from clcommon.public_hooks import setup_logger_and_sentry from clcommon.public_hooks.bundle.directadmin.lib import user_destroy_pre def main(): setup_logger_and_sentry() system_user = os.environ.get('username') usertype = os.environ.get('usertype') exit(user_destroy_pre(system_user, usertype)) if __name__ == '__main__': main()