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
2d2c6241
Commit
2d2c6241
authored
8 years ago
by
Stéphane Diemer
Browse files
Options
Downloads
Patches
Plain Diff
Changed log in system setup.
parent
8218e057
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
2.System/0_setup.py
+8
-2
8 additions, 2 deletions
2.System/0_setup.py
2.System/ubicast_support.pub
+1
-1
1 addition, 1 deletion
2.System/ubicast_support.pub
with
9 additions
and
3 deletions
2.System/0_setup.py
+
8
−
2
View file @
2d2c6241
...
@@ -29,13 +29,19 @@ def setup(interactive=True):
...
@@ -29,13 +29,19 @@ def setup(interactive=True):
# root
# root
cmds
.
append
(
'
mkdir -p /root/.ssh
'
)
cmds
.
append
(
'
mkdir -p /root/.ssh
'
)
cmds
.
append
(
'
chmod 700 /root/.ssh
'
)
cmds
.
append
(
'
chmod 700 /root/.ssh
'
)
if
utils
.
exec_cmd
([
'
rgrep
'
,
'
support@ubicast
'
,
'
/root/.ssh
'
])
!=
0
:
code
,
out
=
utils
.
exec_cmd
([
'
rgrep
'
,
'
support@ubicast
'
,
'
/root/.ssh
'
],
get_out
=
True
)
if
code
!=
0
:
cmds
.
append
(
'
cat
"
%s/ubicast_support.pub
"
>> /root/.ssh/authorized_keys
'
%
dir_path
)
cmds
.
append
(
'
cat
"
%s/ubicast_support.pub
"
>> /root/.ssh/authorized_keys
'
%
dir_path
)
else
:
utils
.
log
(
'
The key
"
ubicast_support.pub
"
is already in /root/.ssh/authorized_keys.
'
)
# ubicast
# ubicast
cmds
.
append
(
'
mkdir -p /home/ubicast/.ssh
'
)
cmds
.
append
(
'
mkdir -p /home/ubicast/.ssh
'
)
cmds
.
append
(
'
chmod 700 /home/ubicast/.ssh
'
)
cmds
.
append
(
'
chmod 700 /home/ubicast/.ssh
'
)
if
utils
.
exec_cmd
([
'
rgrep
'
,
'
support@ubicast
'
,
'
/home/ubicast/.ssh
'
])
!=
0
:
code
,
out
=
utils
.
exec_cmd
([
'
rgrep
'
,
'
support@ubicast
'
,
'
/home/ubicast/.ssh
'
],
get_out
=
True
)
if
code
!=
0
:
cmds
.
append
(
'
cat
"
%s/ubicast_support.pub
"
>> /home/ubicast/.ssh/authorized_keys
'
%
dir_path
)
cmds
.
append
(
'
cat
"
%s/ubicast_support.pub
"
>> /home/ubicast/.ssh/authorized_keys
'
%
dir_path
)
else
:
utils
.
log
(
'
The key
"
ubicast_support.pub
"
is already in /home/ubicast/.ssh/authorized_keys.
'
)
cmds
.
append
(
'
chown -R ubicast:ubicast /home/ubicast/.ssh
'
)
cmds
.
append
(
'
chown -R ubicast:ubicast /home/ubicast/.ssh
'
)
utils
.
run_commands
(
cmds
)
utils
.
run_commands
(
cmds
)
This diff is collapsed.
Click to expand it.
2.System/ubicast_support.pub
+
1
−
1
View file @
2d2c6241
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCr2IJlzvLlLxa2PyGhydAlz/PAOj240g8anQmY58X+llirLHIOlkdJXBqf94jAeZkweWpoE41RdmKPUQEz4pCO09dGJaZD4lv1NtDhrhNwTmoOnyFckoPimR6DX6+UMM9wUmfti/ytljbVEVVo/pRacXmczeumDaci3uYTURyliuAR9h3zbIMQ6D2COESXjptWmEwawE9grsTfJi84Q+XIBPvXRHjjceB5hejUMWuf7xc6GH9WIo5REh3qTUvgtxHtIGLQ3ImOzrbCsEhENrBWds0qH0pIuH0lykWGR6pumpPxLzXcVho+e/UJgUrEg5u6/58aizqJTkxFJMa8ciYz support@ubicast
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCr2IJlzvLlLxa2PyGhydAlz/PAOj240g8anQmY58X+llirLHIOlkdJXBqf94jAeZkweWpoE41RdmKPUQEz4pCO09dGJaZD4lv1NtDhrhNwTmoOnyFckoPimR6DX6+UMM9wUmfti/ytljbVEVVo/pRacXmczeumDaci3uYTURyliuAR9h3zbIMQ6D2COESXjptWmEwawE9grsTfJi84Q+XIBPvXRHjjceB5hejUMWuf7xc6GH9WIo5REh3qTUvgtxHtIGLQ3ImOzrbCsEhENrBWds0qH0pIuH0lykWGR6pumpPxLzXcVho+e/UJgUrEg5u6/58aizqJTkxFJMa8ciYz support@ubicast
\ No newline at end of file
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