관리-도구
편집 파일: cagefs.cpython-311.opt-1.pyc
� �EBg� � � � d dl Z d dlmZ d dlmZ d dlmZ d dlmZm Z d dl mZ d dlm Z dd lmZ G d � de� � ZdS )� N)�Feature)�ExternalProgramFailed)�check_cagefs_initialized)�CageFs�CageFsException)�MODULES_LOGS_DIR)�InstallationFailedException� )�WizardInstallerc � � � e Zd Zej � ed� � Zej Z � fd�Zd� Zd� Z d� Zd� Zd� Zd� Zed � � � Zd � Z� xZS )�CagefsInstallerz cagefs.logc �| �� t � � � � � t | j �� � | _ d S )N)�logger)�super�__init__r � app_logger�cgfs)�self� __class__s ��py/clwizard/modules/cagefs.pyr zCagefsInstaller.__init__ s1 �� � ���������$�/�2�2�2�� � � � c �� � | j � � � }| j � � � }| j � d|� � |dk r| j � � � dS dS )z` Enable all users statuses and after it toggle to initial mode :return: z.Cagefs users status was updated to enabled: %s�Disable AllN)r � get_user_mode�set_enabled_moder �info�toggle_user_mode)r �initial_mode�outs r �_enable_existing_usersz&CagefsInstaller._enable_existing_users sp � � �y�.�.�0�0���i�(�(�*�*������M�s�S�S�S��=�(�(��I�&�&�(�(�(�(�(� )�(r c � � | j � � � }| j � d|� � |dk rO| j � d� � | j � � � | j � d� � d S d S )NzCurrent mode is: %sr zTry to set mode to Enable allzMode was toggled to Enable all)r r r r r )r �modes r �_set_enabled_modez!CagefsInstaller._set_enabled_mode'