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
fa195c38
Commit
fa195c38
authored
Feb 17, 2016
by
iambocai bob.chen.cs@gmail.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update for pull#47
parent
0b79f754
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
.gitignore
.gitignore
+1
-0
org.eclipse.core.resources.prefs
.settings/org.eclipse.core.resources.prefs
+0
-2
connect.py
connect.py
+2
-1
next.py
install/next.py
+1
-1
No files found.
.gitignore
View file @
fa195c38
...
...
@@ -37,6 +37,7 @@ nosetests.xml
.mr.developer.cfg
.project
.pydevproject
.settings
*.log
logs/*
keys/*
...
...
.settings/org.eclipse.core.resources.prefs
deleted
100644 → 0
View file @
0b79f754
eclipse.preferences.version=1
encoding/connect.py=UTF-8
connect.py
View file @
fa195c38
...
...
@@ -583,7 +583,8 @@ class Nav(object):
elif
len
(
roles
)
==
1
:
# 授权角色数为1
role
=
roles
[
0
]
else
:
color_print
(
'当前用户未被授予角色,无法执行任何操作,如有疑问请联系管理员。'
,
exits
=
True
)
color_print
(
'当前用户未被授予角色,无法执行任何操作,如有疑问请联系管理员。'
)
return
assets
=
list
(
self
.
user_perm
.
get
(
'role'
,
{})
.
get
(
role
)
.
get
(
'asset'
))
# 获取该用户,角色授权主机
print
"授权包含该系统用户的所有主机"
for
asset
in
assets
:
...
...
install/next.py
View file @
fa195c38
...
...
@@ -83,8 +83,8 @@ class Setup(object):
@staticmethod
def
_cp_zzsh
():
os
.
chdir
(
os
.
path
.
join
(
jms_dir
,
'install'
))
bash
(
"sed -i 's#/opt/jumpserver#
%
s#g' zzjumpserver.sh"
%
jms_dir
)
shutil
.
copy
(
'zzjumpserver.sh'
,
'/etc/profile.d/'
)
bash
(
"sed -i 's#/opt/jumpserver#
%
s#g' /etc/profile.d/zzjumpserver.sh"
%
jms_dir
)
@staticmethod
def
_run_service
():
...
...
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