Preview: prechangesubdomaindocroot
Size: 713 B
/opt/cloudlinux/venv/lib64/python3.11/site-packages/clcommon/public_hooks/bundle/cpanel/bin/prechangesubdomaindocroot
#!/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 json
import sys
from clcommon.public_hooks.bundle.cpanel.lib import (
cpanel_prechangesubdomaindocroot_main,
print_response
)
from clcommon.public_hooks import setup_logger_and_sentry
def main():
setup_logger_and_sentry()
args = json.load(sys.stdin)
exit_code = cpanel_prechangesubdomaindocroot_main(args['data'])
print_response(hook_name=__file__, success=exit_code == 0)
exit(exit_code)
if __name__ == '__main__':
main()
Directory Contents
Dirs: 0 × Files: 12