1
0
mirror of https://github.com/altlinux/gpupdate.git synced 2025-03-21 18:50:38 +03:00

firefox_applier: Check if module is enabled via group policy

This commit is contained in:
Игорь Чудов 2020-06-26 18:29:23 +04:00
parent f460ba3ae6
commit 02aa2cdbc6
Signed by untrusted user: nir
GPG Key ID: 0F3883600CAE7AAC

View File

@ -30,11 +30,17 @@ import json
import os
import configparser
from .applier_frontend import applier_frontend
from .applier_frontend import (
applier_frontend
, check_module_enabled
)
from util.logging import slogm
from util.util import is_machine_name
class firefox_applier(applier_frontend):
__module_name = 'firefox_applier'
__module_experimental = True
__module_enabled = True
__registry_branch = 'Software\\Policies\\Mozilla\\Firefox'
__firefox_installdir = '/usr/lib64/firefox/distribution'
__user_settings_dir = '.mozilla/firefox'
@ -46,6 +52,7 @@ class firefox_applier(applier_frontend):
self._is_machine_name = is_machine_name(self.username)
self.policies = dict()
self.policies_json = dict({ 'policies': self.policies })
self.__module_enabled = check_module_enabled(self.storage, self.__module_name, self.__module_enabled)
def get_profiles(self):
'''