PATH:
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
clwpos
/
migrations
/
__pycache__
� ���/L�� � � d dl Z d dlZd dlZd dlmZ d dlmZ d dlmZ d dl m Z mZ d dlm Z mZ ede j d� � � Zd � Zd� Zd� Zd � ZdS )� N)� setup_logging)�cpusers)�get_pw)�get_suites_allowed_path�get_admin_config_permissions)�CAGEFS_MP_FILENAME�remove_mount_dir_cagefs�configs_migrationz%/var/log/clwpos/configs_migration.log)�caller_name� file_level�logfile_pathc � � t j | |� � t |� � \ }}}t j |� � D ]M}t j � ||� � }t j |||� � t j ||� � �Nd S )N) �shutil�copy2r �os�listdir�path�join�chown�chmod)�source�target�gid�owner�group�mode�item� full_paths �py/clwpos/migrations/configs.py�_copy_with_permsr s� � � �L��� � � �5�c�:�:��E�5�$�� �6�"�"� "� "���G�L�L���.�.� � ���E�5�)�)�)� ���D�!�!�!�!�"� "� c �"