Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Nounous
Crans Passwords
Commits
5b6a576e
Commit
5b6a576e
authored
Jul 28, 2013
by
Vincent Le gallic
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sudo oublié
parent
fdead6f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
clientconfig.example.py
clientconfig.example.py
+5
-2
No files found.
clientconfig.example.py
View file @
5b6a576e
...
...
@@ -14,6 +14,9 @@ ssh_path = '/usr/bin/ssh'
#: Path du script ``cmd_name``-server sur le serveur
server_path
=
'/usr/local/bin/%s-server'
%
(
cmd_name
,)
#: Commande à exécuter sur le serveur après y être entré en ssh
distant_cmd
=
"sudo %s"
%
(
server_path
,)
#: Username utilisé pour se loguer sur le serveur.
#: Par défaut, prend la valeur de l'username sur le client,
#: il faut donc le remplacer pour ceux qui n'ont pas le même username
...
...
@@ -29,11 +32,11 @@ username = os.getenv('USER')
#: * ``'user'``: L'username sur le serveur
servers
=
{
'default'
:
{
'server_cmd'
:
[
ssh_path
,
'vert.adm.crans.org'
,
server_path
],
'server_cmd'
:
[
ssh_path
,
'vert.adm.crans.org'
,
distant_cmd
],
'user'
:
username
},
'ovh'
:
{
'server_cmd'
:
[
ssh_path
,
'ovh.crans.org'
,
server_path
],
'server_cmd'
:
[
ssh_path
,
'ovh.crans.org'
,
distant_cmd
],
'user'
:
username
}
}
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