File: //usr/share/cagefs/__pycache__/repair_homes.cpython-311.pyc
�
via[ � � � d dl mZ d dl mZ d dl mZ d dl mZ d dlmZ ej � � d dlT d dl Z d dl
Z
d dlZd dlZd dl
Z
d dlZd dlZd dlmZ d d lmZ d d
lmZ dZdZd
ZdZdZdZdZdZdZd� ZdZ d� Z!d� Z"d� Z#d� Z$dZ%e%dz Z&e%dz Z'd� Z(d� Z)d� Z*d � Z+d!� Z,d"� Z-d#� Z.d$� Z/d%� Z0d&� Z1d.d(�Z2d)� Z3d*� Z4d+� Z5d,� Z6e7d-k r e5� � dS dS )/� )�print_function)�absolute_import)�division)�unicode_literals)�standard_library)�*N)�mod_makedirs)�BASEDIR)�print_errorz"/usr/share/cagefs/repair_homes.logz/homez/etc/passwdz!/usr/local/apache/conf/httpd.confz%/usr/local/cpanel/bin/userdata_updatez/usr/sbin/usermodz/var/cpanel/userdataz/etc/cagefs.etc� c �� � t j t t z � � } n# t $ r Y d S w xY w| D ]�}t dz |z }t t z dz |z }t j � |� � s�D t j |� � n # t $ r t d|� � Y nw xY w t j ||� � ��# t $ r t d|d|� � Y ��w xY wd S )Nz/etc/�/zWarning: failed to removezWarning: failed to move�to)
�os�listdir�DEBUG_PREFIX�
CAGEFS_ETC�OSError�path�islink�unlink�print�rename)�dirList�_file�target�origins �`/builddir/build/BUILDROOT/cagefs-7.6.28-1.el8.cloudlinux.x86_64/usr/share/cagefs/repair_homes.py�uninstall_cagefs_etcr + s9 � ���*�\�J�6�7�7����� � � �������� � C� C����'�%�/���
�*�S�0�5�8���w�~�~�f�%�%� �� 7��I�f������� 7� 7� 7��-�v�6�6�6�6�6� 7���� C��I�f�f�%�%�%�%��� C� C� C��+�V�T�6�B�B�B�B�B� C����C� Cs0 �!$ �
2�2�<B�B.�-B.�2C�C'�&C'z/bin/umountc � � | � � � | � � � | D ]}t j t d|g� � �d S )Nz-l)�sort�reverse�
subprocess�call�UMOUNT)�_list�lines r �umount_listr( G sO � � �J�J�L�L�L� �M�M�O�O�O�� .� .������t�,�-�-�-�-�.� .� c �( � t dd� � � � � } g }| D ]j}|� � � d }|� t � � dk r0|� ||� d� � d � � � �k|S )N�/proc/mounts�r� ���r )�open� readlines�split�findr
�append)�mountsr&