mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-22 11:23:10 +00:00
chsh affiche le shell actuel
This commit is contained in:
parent
57833142eb
commit
06ecd44d02
1 changed files with 5 additions and 1 deletions
|
@ -54,7 +54,11 @@ class Command(BaseCommand):
|
||||||
raise CommandError(msg)
|
raise CommandError(msg)
|
||||||
|
|
||||||
shells = ListShell.objects.all()
|
shells = ListShell.objects.all()
|
||||||
self.stdout.write("Choisissez un shell pour l'utilisateur %s :" % target_user.pseudo)
|
|
||||||
|
current_shell = "inconnu"
|
||||||
|
if target_user.shell:
|
||||||
|
current_shell = target_user.shell.get_pretty_name()
|
||||||
|
self.stdout.write("Choisissez un shell pour l'utilisateur %s (le shell actuel est %s) :" % (target_user.pseudo, current_shell))
|
||||||
for shell in shells:
|
for shell in shells:
|
||||||
self.stdout.write("%d - %s (%s)" % (shell.id, shell.get_pretty_name(), shell.shell))
|
self.stdout.write("%d - %s (%s)" % (shell.id, shell.get_pretty_name(), shell.shell))
|
||||||
shell_id = input("Entrez un nombre : ")
|
shell_id = input("Entrez un nombre : ")
|
||||||
|
|
Loading…
Reference in a new issue