Your IP : 18.188.151.107


Current Path : /proc/self/root/opt/cloudlinux/venv/lib64/python3.11/site-packages/clcommon/public_hooks/bundle/plesk/bin/
Upload File :
Current File : //proc/self/root/opt/cloudlinux/venv/lib64/python3.11/site-packages/clcommon/public_hooks/bundle/plesk/bin/physical_hosting_deleted

#!/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
#
"""
https://docs.plesk.com/en-US/onyx/administrator-guide/
server-administration/event-parameters-passed-by-event-handlers.67897/
#physical-hosting-deleted
"""
from __future__ import print_function
from __future__ import absolute_import
from __future__ import division
import os
from clcommon.public_hooks.bundle.plesk.lib import physical_hosting_deleted


def main():
    deleted_system_user = os.environ.get('OLD_SYSTEM_USER')
    # domain deletion is also can be handled here
    deleted_domain_name = os.environ['OLD_DOMAIN_NAME']

    exit(physical_hosting_deleted(deleted_system_user, deleted_domain_name))


if __name__ == '__main__':
    main()