mirror of https://github.com/jumpserver/jumpserver
fix (install.py): compatible fedora
1. compatible fedora (test fedora22)pull/101/head
parent
a95e1bb835
commit
427fda1015
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue