}CejddlmZddlmZddlmZddlZddlZddlZdZdZdZ dZ d Z d Z ej e d Zd Zd ZdS))print_function)absolute_import)divisionN&z'Unable to find username in hook cmdlinez/usr/sbin/lvectlz/usr/sbin/whmapi1z/var/lvetmpcfdt}tj|dd S)Nz/{} --help | grep -P '^sync-map\s+' &> /dev/nullT /bin/bashshell executable)formatLVECTL subprocesscall)test_cmds /builddir/build/BUILDROOT/alt-python27-cllib-3.3.7-2.el7.cloudlinux.x86_64/opt/cloudlinux/venv/lib/python3.11/site-packages/clcommon/cpapi/panel_hooks_lib.pysyncmap_supportedrs/@GGOOHxt LLL LLctjdtdd}|dtfvr>t r2t d|tjdSdSdS) z/ Run lvectl sync-map :return: None z{} sync-map &> /dev/nullTr r rz(Error during "lvectl sync-map", code: {})fileN) rrrr TOO_OLD_LVErprintsysstderr)ret_codes r call_sync_mapr#s 9@@HH%)kCCCH;'''    ` <CCHMMTWT^ _ _ _ _ _ _(' ` `r) __future__rrrosrrrEXIT_NO_USER_FOUNDERR_NO_USER_FOUNDrWHMAPI1LVE_DIRpathjoinTMP_DIRrrrrr(s&%%%%%&&&&&&   =    ',,w & &MMM ` ` ` ` `r