From 6d7b07ef6220ea6301d376b284b3147a1f5d8447 Mon Sep 17 00:00:00 2001 From: lseys Date: Thu, 8 Oct 2020 13:19:30 +0200 Subject: [PATCH] =?UTF-8?q?premi=C3=A8re=20modif?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ubuntu-et-variantes-integrdom.sh | 41 +++++++++++++++++++++++++++----- 1 file changed, 35 insertions(+), 6 deletions(-) diff --git a/ubuntu-et-variantes-integrdom.sh b/ubuntu-et-variantes-integrdom.sh index 195c31e..aae4440 100644 --- a/ubuntu-et-variantes-integrdom.sh +++ b/ubuntu-et-variantes-integrdom.sh @@ -102,11 +102,15 @@ if [ "$DISTRIB_RELEASE" = "18.04" ] || [ "$DISTRIB_RELEASE" = "19" ] || [ "$DIST version=bionic # Ubuntu 18.04 / Mint 19 / Elementary OS 5.0 fi +if [ "$DISTRIB_RELEASE" = "20.04" ] || [ "$DISTRIB_RELEASE" = "20" ] ; then + version=focal # Ubuntu 20.04 / Mint 20 +fi + ######################################################################## # Vérification de version ######################################################################## -if [ "$version" != "trusty" ] && [ "$version" != "xenial" ] && [ "$version" != "bionic" ] ; then +if [ "$version" != "trusty" ] && [ "$version" != "xenial" ] && [ "$version" != "bionic" ] && [ "$version" != "focal" ] ; then echo "Désolé, vous n'êtes pas sur une version compatible !" exit fi @@ -301,14 +305,24 @@ Auth: required pam_group.so use_first_pass" > /usr/share/pam-configs/my_groups ######################################################################## -#auth ldap +#auth ldap avec changement de fichier sur les version 20.04 et 20(Mint) => /etc/nsswitch.conf ######################################################################## + +if [ "$DISTRIB_RELEASE" = "20.04" ] || [ "$DISTRIB_RELEASE" = "20" ] ; then +echo "[open_ldap] +nss_passwd=passwd: files ldap +nss_group=group: files ldap +nss_shadow=shadow: files ldap +nss_netgroup=netgroup: nis +" > /etc/nsswitch.conf +else echo "[open_ldap] nss_passwd=passwd: files ldap nss_group=group: files ldap nss_shadow=shadow: files ldap nss_netgroup=netgroup: nis " > /etc/auth-client-config/profile.d/open_ldap +fi ######################################################################## #application de la conf nsswitch @@ -426,7 +440,8 @@ disable-user-list=true" > /etc/dconf/db/gdm.d/00-login-screen dconf update # Suppression icone Amazon -apt purge -y ubuntu-web-launchers gnome-initial-setup +apt purge -y ubuntu-web-launchers +apt purge -y gnome-initial-setup # Remplacement des snaps par défauts par la version apt (plus rapide) snap remove gnome-calculator gnome-characters gnome-logs gnome-system-monitor @@ -503,8 +518,8 @@ fi apt purge -y aisleriot gnome-mahjongg ; # Pour être sûr que les paquets suivant (parfois présent) ne sont pas installés : -apt purge -y pidgin transmission-gtk gnome-mines gnome-sudoku blueman abiword gnumeric thunderbird mintwelcome ; - +apt purge -y pidgin transmission-gtk gnome-mines gnome-sudoku blueman abiword gnumeric thunderbird ; +apt purge -y mintwelcome ; ######################################################################## #suppression de l'envoi des rapport d'erreurs @@ -578,4 +593,18 @@ echo "C'est fini ! Un reboot est nécessaire..." read -p "Voulez-vous redémarrer immédiatement ? [O/n] " rep_reboot if [ "$rep_reboot" = "O" ] || [ "$rep_reboot" = "o" ] || [ "$rep_reboot" = "" ] ; then reboot -fi \ No newline at end of file +fi + + © 2020 GitHub, Inc. + Terms + Privacy + Security + Status + Help + Contact GitHub + Pricing + API + Training + Blog + About +