From 427fda1015249a5838d9860f2ab4e9e89fc806e8 Mon Sep 17 00:00:00 2001 From: yumaojun <719118794@qq.com> Date: Mon, 29 Feb 2016 10:09:05 +0800 Subject: [PATCH] =?UTF-8?q?fix=20(install.py):=20=E3=80=80compatible=20fed?= =?UTF-8?q?ora?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. compatible fedora (test fedora22) --- install/install.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/install.py b/install/install.py index 6ed0a6ad..234a9235 100755 --- a/install/install.py +++ b/install/install.py @@ -168,7 +168,7 @@ class PreSetup(object): cmd3 = "systemctl disable firewalld" bash('%s && %s && %s' % (cmd1, cmd2, cmd3)) bash('localectl set-locale LANG=en_US.UTF-8') - bash('setenforce 0') + bash('which setenforce 2> /dev/null 1> /dev/null && setenforce 0') else: bash("sed -i 's/LANG=.*/LANG=en_US.UTF-8/g' /etc/sysconfig/i18n") bash('service iptables stop && chkconfig iptables off && setenforce 0') -- 2.18.0