Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Thomas Bourgeat
thundermodo
Commits
6a17cf79
Commit
6a17cf79
authored
Oct 13, 2014
by
Antonin Delpeuch
Browse files
Check that SSH_ASKPASS is defined in ./configure
parent
fe8abe18
Changes
1
Show whitespace changes
Inline
Side-by-side
configure
View file @
6a17cf79
#!/bin/sh
# Demander le login clipper
if
[
$1
]
;
then
sed
-e
s/CLIPPER_USERNAME/
$1
/ chrome/content/toolbar-events.js.in
>
chrome/content/toolbar-events.js
echo
"Vous pouvez maintenant lancer 'make' pour créer le plugin Thunderbird."
else
echo
"Entrez votre login clipper :"
read
login
./configure
$login
exit
0
fi
# S'assurer qu'un SSH_ASKPASS est défini
if
[
$SSH_ASKPASS
]
;
then
echo
"Vous utilisez le prompt suivant pour vous authentifier: SSH_ASKPASS=
$SSH_ASKPASS
"
else
echo
"Attention:"
echo
"Il serait bon de définir la variable d'environnement
\$
SSH_ASKPASS pour utiliser un prompt graphique."
if
[
-f
/usr/lib/openssh/gnome-ssh-askpass
]
;
then
echo
"Voulez-vous utiliser la valeur par défaut, gnome-ssh-askpass ? [oui/non]"
read
answer
if
[
$answer
=
"oui"
]
;
then
path
=
"/usr/lib/openssh/gnome/ssh-askpass"
echo
SSH_ASKPASS
=
\"
$path
\"
>>
~/.profile
echo echo
SSH_ASKPASS
=
\"
$path
\"
\>\>
~/.profile
else
echo
"Définissez-le donc vous même :-) ."
fi
else
echo
"Une possibilité est d'utiliser gnome-ssh-askpass, qui est disponible dans le paquet ssh-askpass-gnome sur Debian/Ubuntu"
echo
"Vous pouvez ensuite définir SSH_ASKPASS=/usr/lib/openssh/gnome-ssh-askpass dans votre .profile"
fi
fi
echo
""
echo
"Vous pouvez maintenant lancer 'make' pour créer le plugin Thunderbird."
Write
Preview
Supports
Markdown
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