From 7256aaa2761483afc68a2bca62fd6f3256ec61fc Mon Sep 17 00:00:00 2001 From: PierreGoude Date: Mon, 23 Oct 2017 11:30:15 +0200 Subject: [PATCH] Update ADconnection.sh --- ADconnection.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ADconnection.sh b/ADconnection.sh index bb8b81f..1743f3b 100644 --- a/ADconnection.sh +++ b/ADconnection.sh @@ -201,10 +201,10 @@ fi logintrue=$( cat /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf | grep -i -m1 login ) if [ "$logintrue" = "greeter-show-manual-login=true" ] then +echo "50-ubuntu.conf is alresdy configured.. skipping" +else sudo sh -c "echo 'greeter-show-manual-login=true' | sudo tee -a /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf" sudo sh -c "echo 'allow-guest=false' | sudo tee -a /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf" -else -echo "50-ubuntu.conf is alresdy onfigured.. skipping" fi clear echo "If you have several domain controllers worldwide it is recomended to set your DC"