T!f4dZddlZddlmZddlmZedkr=eejeZe dZ e d d Z e d d dde dddde dd Ze d d dde dddde ddd e ddddde dd e d!d" e d#d$ Ze d d dde ddddeZeZejd kr"eejejdSejdkrLd%ejiZejr ejed&<ejr ejed'<ejejejejfiedSejd#kr"eejejdSedS)(z Domain POST modification hook. This script must be called AFTER different domain-related changes in control panel. See --help and docs for detailed description of actions and parameters. N)ModifyDomainHook)setup_logger_and_sentry__main__) descriptioncommand)destcreatezH[NOT FOR VENDORS PANELS INTEGRATION] Call when domain record is created.)helpz --usernamez-uTzUser that owns domain.)requiredr z--domainz-dsz"Domain name e.g.: `userdomain.com`modifyzhCall when domain record is updated (e.g all sites that have worked on old domain now work on a new one).z1Domain name before rename, e.g.: `userdomain.com`z --new-domainz-dtz0Domain name after rename, e.g.: `userdomain2.eu`z--include-subdomainsF store_truezIf set, we will also process all domains that end with domain name (subdomains). E.g. when renaming olddomain.com -> newdomain.eu we will also rename sub.olddomain.com to sub.newdomain.eu)r defaultactionr z --old-docrootz&Old document root path for the domain.z --new-docrootz&New document root path for the domain.deletezG[NOT FOR INTEGRATED CONTROL PANELS] Call when domain record is deleted.include_subdomains old_docroot new_docroot)__doc__argparseclcommon.public_hooks.librclcommon.public_hooksr__name__ArgumentParserparseradd_subparsers subparsers add_parser create_domain add_argument modify_domain parse_argsargshookrpost_create_domainusernamedomainrkwargsrrpost_modify_domain new_domainpost_delete_domainNotImplementedError/builddir/build/BUILDROOT/alt-python27-cllib-3.4.36-1.el9.cloudlinux.x86_64/opt/cloudlinux/venv/lib/python3.11/site-packages/clcommon/public_hooks/bin/post_modify_domain.pyr/s 666666999999 z $X $ 9 9 9F&&I&66J))a*ccM|TDG_```z54$HJJJ))1*22M|TDG_```z54$WYYY~u$VXXXlIJJJ $LNNN$LNNN))`*bbM|TDG_```z54$WYYY     D    D |x  M4; ( ( ( ( (  ! !&(?@   5$($4F= !   5$($4F= ! M4; C C;A C C C C C  ! !  t{;;;;;!!qr-