ajout du partage groupes dans ~/Groupes ligne 488

This commit is contained in:
lseys 2020-10-09 15:15:13 +02:00
parent 7074235f75
commit 25ae243179
1 changed files with 9 additions and 0 deletions

View File

@ -485,6 +485,15 @@ else
echo "homes déjà présent" echo "homes déjà présent"
fi fi
groupes="<volume user=\"*\" fstype=\"cifs\" server=\"$ip_scribe\" path=\"groupes\" mountpoint=\"~/Groupes\" />"
grep "mountpoint=\"~\"" /etc/security/pam_mount.conf.xml >/dev/null
if [ $? != 0 ]
then
sed -i "/<\!-- Volume definitions -->/a\ $groupes"
else
echo "groupes déjà présent"
fi
netlogon="<volume user=\"*\" fstype=\"cifs\" server=\"$ip_scribe\" path=\"netlogon\" mountpoint=\"/tmp/netlogon\" sgrp=\"DomainUsers\" />" netlogon="<volume user=\"*\" fstype=\"cifs\" server=\"$ip_scribe\" path=\"netlogon\" mountpoint=\"/tmp/netlogon\" sgrp=\"DomainUsers\" />"
grep "/tmp/netlogon" /etc/security/pam_mount.conf.xml >/dev/null grep "/tmp/netlogon" /etc/security/pam_mount.conf.xml >/dev/null
if [ $? != 0 ] if [ $? != 0 ]