PHP 8.2.30
Preview: user_destroy_pre Size: 612 B
/opt/cloudlinux/venv/lib/python3.11/site-packages/clcommon/public_hooks/bundle/directadmin/bin/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()

Directory Contents

Dirs: 0 × Files: 5

Name Size Perms Modified Actions
667 B lrwxr-xr-x 2026-02-10 15:06:06
Edit Download
560 B lrwxr-xr-x 2026-02-10 15:06:06
Edit Download
614 B lrwxr-xr-x 2026-02-10 15:06:06
Edit Download
612 B lrwxr-xr-x 2026-02-10 15:06:06
Edit Download
561 B lrwxr-xr-x 2026-02-10 15:06:06
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).