Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
J
jumpserver
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ops
jumpserver
Commits
d63b5772
Commit
d63b5772
authored
9 years ago
by
yumaojun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix (install.py): check platform
1. check platform , support CentOS, ReaHat, Fedora, Ubuntu, debian
parent
37e0f80f
No related merge requests found
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
install.py
install/install.py
+4
-3
No files found.
install/install.py
View file @
d63b5772
...
...
@@ -85,17 +85,17 @@ class PreSetup(object):
@property
def
_is_redhat
(
self
):
if
self
.
dist
==
"centos"
or
self
.
dist
==
"redhat"
or
self
.
dist
==
"fed
e
ra"
:
if
self
.
dist
==
"centos"
or
self
.
dist
==
"redhat"
or
self
.
dist
==
"fed
o
ra"
:
return
True
@property
def
_is_ubuntu
(
self
):
if
self
.
dist
==
"ubuntu"
or
self
.
dist
==
"deb
ai
n"
:
if
self
.
dist
==
"ubuntu"
or
self
.
dist
==
"deb
ia
n"
:
return
True
def
check_platform
(
self
):
if
self
.
_is_redhat
or
self
.
_is_ubuntu
:
raise
ValueError
(
u"支持的平台: CentOS, RedHat, Fed
are, Debai
n, Ubuntu, 暂不支持其他平台安装."
)
raise
ValueError
(
u"支持的平台: CentOS, RedHat, Fed
ora, Debia
n, Ubuntu, 暂不支持其他平台安装."
)
def
write_conf
(
self
,
conf_file
=
os
.
path
.
join
(
jms_dir
,
'jumpserver.conf'
)):
color_print
(
'开始写入配置文件'
,
'green'
)
...
...
@@ -245,6 +245,7 @@ class PreSetup(object):
def
start
(
self
):
color_print
(
'请务必先查看wiki https://github.com/ibuler/jumpserver/wiki/Quickinstall'
)
time
.
sleep
(
3
)
self
.
check_platform
()
self
.
_rpm_repo
()
self
.
_depend_rpm
()
self
.
_require_pip
()
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment