Update ADconnection.sh

This commit is contained in:
PierreGode 2018-08-20 14:41:32 +02:00 committed by GitHub
parent c6cf65bb03
commit a3a888bcb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -442,17 +442,8 @@ desktop=$( sudo apt list --installed | grep -i desktop | grep -i ubuntu | cut -d
if [ "$desktop" = "desktop" ] < /dev/null > /dev/null 2>&1
then
echo "Ubuntu Desktop detected"
Arm=$( sudo hostnamectl | grep Architecture | awk '{print $2}' )
if [ "$Arm" = "arm" ]
then
sudo sh -c "echo 'greeter-show-manual-login=true' | sudo tee -a /usr/share/lightdm/lightdm.conf.d/50-ubuntu-mate.conf"
sudo sh -c "echo 'allow-guest=false' | sudo tee -a /usr/share/lightdm/lightdm.conf.d/50-ubuntu-mate.conf"
UbuntU
else
UbuntU
fi
if [
else
echo " this seems to be a server, swithching to server mode"
ubuntuserver14
fi