From d42da6f0e6e9c0b9ec4204f40e42db59e516c740 Mon Sep 17 00:00:00 2001 From: PierreGode Date: Tue, 27 Mar 2018 11:19:53 +0200 Subject: [PATCH] Added support for Ubuntu mate +remade OS detection --- ADconnection.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ADconnection.sh b/ADconnection.sh index cb60f6a..14c3131 100644 --- a/ADconnection.sh +++ b/ADconnection.sh @@ -872,7 +872,8 @@ read -p "Do you really want to leave the domain: $DOMAIN (y/n)?" yn LEFT=$(sudo realm discover | grep configured | awk '{print $2}') if [ "$LEFT" = "no" ] then - echo "" + echo "" + sudo echo "" | sudo tee /etc/sssd/sssd.conf echo "$DOMAIN has been left" else echo "something went wrong, try to leave manually" @@ -885,6 +886,7 @@ read -p "Do you really want to leave the domain: $DOMAIN (y/n)?" yn if [ "$left" = "no" ] then echo "" + sudo echo "" | sudo tee /etc/sssd/sssd.conf echo "$DOMAIN has been left" else echo "something went wrong, try to leave manually"