ipaplatform: Move all filesystem paths to ipaplatform.paths module
https://fedorahosted.org/freeipa/ticket/4052 Reviewed-By: Petr Viktorin <pviktori@redhat.com>
This commit is contained in:
1 parent
c7edd7b68c
commit
4d2ef43f28
61 files changed
+743
-470
No files matched your search
@@ -1,4 +1,5 @@
|
||||
# Authors: Alexander Bokovoy <abokovoy@redhat.com>
|
||||
from ipaplatform.paths import paths
|
||||
#
|
||||
# Copyright (C) 2011 Red Hat
|
||||
# see file 'COPYING' for use and warranty information
|
||||
@@ -17,8 +18,8 @@
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
# Firefox paths
|
||||
FIREFOX_EXEC = "/usr/bin/firefox"
|
||||
FIREFOX_INSTALL_DIRS = ["/usr/lib64/firefox", "/usr/lib/firefox"]
|
||||
FIREFOX_EXEC = paths.FIREFOX
|
||||
FIREFOX_INSTALL_DIRS = [paths.LIB64_FIREFOX, paths.LIB_FIREFOX]
|
||||
# /firefox/install/dir/FIREFOX_PREFERENCES_REL_PATH
|
||||
FIREFOX_PREFERENCES_REL_PATH = "browser/defaults/preferences"
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
# Author: Alexander Bokovoy <abokovoy@redhat.com>
|
||||
from ipaplatform.paths import paths
|
||||
#
|
||||
# Copyright (C) 2011 Red Hat
|
||||
# see file 'COPYING' for use and warranty information
|
||||
@@ -19,8 +20,8 @@
|
||||
|
||||
from ipapython.platform import redhat
|
||||
|
||||
def restore_context(filepath, restorecon='/usr/sbin/restorecon'):
|
||||
def restore_context(filepath, restorecon=paths.RESTORECON):
|
||||
return redhat.restore_context(filepath, restorecon)
|
||||
|
||||
def check_selinux_status(restorecon='/usr/sbin/restorecon'):
|
||||
def check_selinux_status(restorecon=paths.RESTORECON):
|
||||
return redhat.check_selinux_status(restorecon)
|
||||
Reference in new issue
Block a user