Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
envsetup
Manage
Activity
Members
Plan
Redmine
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mediaserver
envsetup
Commits
ccd040c8
Commit
ccd040c8
authored
8 years ago
by
Stéphane Diemer
Browse files
Options
Downloads
Patches
Plain Diff
Fixed line returns in SSH auth keys.
parent
9853b7cc
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
1.Base/2.ubicast_shell_access/0_setup.py
+2
-2
2 additions, 2 deletions
1.Base/2.ubicast_shell_access/0_setup.py
with
2 additions
and
2 deletions
1.Base/2.ubicast_shell_access/0_setup.py
+
2
−
2
View file @
ccd040c8
...
@@ -13,13 +13,13 @@ def add_allowed_keys(path, keys):
...
@@ -13,13 +13,13 @@ def add_allowed_keys(path, keys):
content
=
fo
.
read
()
content
=
fo
.
read
()
elif
not
os
.
path
.
exists
(
os
.
path
.
dirname
(
path
)):
elif
not
os
.
path
.
exists
(
os
.
path
.
dirname
(
path
)):
os
.
makedirs
(
os
.
path
.
dirname
(
path
))
os
.
makedirs
(
os
.
path
.
dirname
(
path
))
new_content
=
content
.
strip
()
new_content
=
content
.
strip
()
+
'
\n
'
for
key
in
keys
:
for
key
in
keys
:
key
=
key
.
strip
()
key
=
key
.
strip
()
if
not
key
:
if
not
key
:
continue
continue
if
key
not
in
new_content
:
if
key
not
in
new_content
:
new_content
+=
'
\n
'
+
key
new_content
+=
key
+
'
\n
'
utils
.
log
(
'
The key
"
%s
"
will be added in
"
%s
"
.
'
%
(
key
.
split
(
'
'
)[
-
1
],
path
))
utils
.
log
(
'
The key
"
%s
"
will be added in
"
%s
"
.
'
%
(
key
.
split
(
'
'
)[
-
1
],
path
))
else
:
else
:
utils
.
log
(
'
The key
"
%s
"
is already in
"
%s
"
.
'
%
(
key
.
split
(
'
'
)[
-
1
],
path
))
utils
.
log
(
'
The key
"
%s
"
is already in
"
%s
"
.
'
%
(
key
.
split
(
'
'
)[
-
1
],
path
))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment