première modif
This commit is contained in:
parent
8135f7ddef
commit
6d7b07ef62
|
@ -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
|
||||
|
@ -579,3 +594,17 @@ read -p "Voulez-vous redémarrer immédiatement ? [O/n] " rep_reboot
|
|||
if [ "$rep_reboot" = "O" ] || [ "$rep_reboot" = "o" ] || [ "$rep_reboot" = "" ] ; then
|
||||
reboot
|
||||
fi
|
||||
|
||||
© 2020 GitHub, Inc.
|
||||
Terms
|
||||
Privacy
|
||||
Security
|
||||
Status
|
||||
Help
|
||||
Contact GitHub
|
||||
Pricing
|
||||
API
|
||||
Training
|
||||
Blog
|
||||
About
|
||||
|
||||
|
|
Loading…
Reference in New Issue