Added support for Ubuntu mate +remade OS detection

This commit is contained in:
PierreGode 2018-03-27 11:19:53 +02:00 committed by GitHub
parent ff8ae0ad42
commit d42da6f0e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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}') LEFT=$(sudo realm discover | grep configured | awk '{print $2}')
if [ "$LEFT" = "no" ] if [ "$LEFT" = "no" ]
then then
echo "" echo ""
sudo echo "" | sudo tee /etc/sssd/sssd.conf
echo "$DOMAIN has been left" echo "$DOMAIN has been left"
else else
echo "something went wrong, try to leave manually" 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" ] if [ "$left" = "no" ]
then then
echo "" echo ""
sudo echo "" | sudo tee /etc/sssd/sssd.conf
echo "$DOMAIN has been left" echo "$DOMAIN has been left"
else else
echo "something went wrong, try to leave manually" echo "something went wrong, try to leave manually"