Crysalix/main.sh

30 lines
588 B
Bash
Executable file
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
source ./sources/functions.sh
banner "Manage OpenLDAP"
CHOIX=(
"1. Ajouter un ou plusieurs utilisateurs a un groupe"
)
select_option() {
log info "Selectionnez une option..."
choice=$(printf "%s\n" "${CHOIX[@]}" | fzf --height=4 --reverse --cycle --prompt=" Choix : " --layout=reverse)
}
sleep 1.5
select_option
case $choice in
"1. Ajouter un ou plusieurs utilisateurs a un groupe")
log success "Ajouter un ou plusieurs utilisateurs a un groupe"
sleep 1
source ./actions/add_user_to_group·sh
;;
*)
log error "Choice non reconnue"
exit 1
;;
esac