Added --remove to leave function

Added --remove to leave function
This commit is contained in:
PierreGode 2022-03-30 10:28:37 +02:00 committed by GitHub
parent bfbeb0bbb2
commit 1ae1b53ad8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2393,7 +2393,7 @@ read -r -p "Do you really want to leave the domain: $SSSD (y/n)?" yn
case $yn in
[Yy]* ) echo "Listing domain"
sudo realm discover "$SSSD" | grep realm | head -1
if ! sudo realm leave "$SSSD"
if ! sudo realm leave "$SSSD" --remove
then
echo "failed Nothing to leave"
exit 0
@ -2412,7 +2412,7 @@ read -r -p "Do you really want to leave the domain: $SSSD (y/n)?" yn
echo ""
echo "Please type domain you wish to leave"
read -r DOMAIN
sudo realm leave "$DOMAIN"
sudo realm leave "$DOMAIN" --remove
left=$(sudo realm discover | grep configured | awk '{print $2}')
if [ "$left" = "no" ]
then
@ -2451,7 +2451,7 @@ read -r -p "Do you really want to leave the domain: $SSSD (y/n)?" yn
case $yn in
[Yy]* ) echo "Listing domain"
sudo realm discover "$SSSD" | grep realm | head -1
if ! sudo realm leave "$SSSD"
if ! sudo realm leave "$SSSD" --remove
then
echo "failed Nothing to leave"
exit 0
@ -2469,7 +2469,7 @@ read -r -p "Do you really want to leave the domain: $SSSD (y/n)?" yn
echo ""
echo "Please type domain you wish to leave"
read -r DOMAIN
sudo realm leave "$DOMAIN"
sudo realm leave "$DOMAIN" --remove
left=$(sudo realm discover | grep configured | awk '{print $2}')
if [ "$left" = "no" ]
then