correction montage commun, groupe, professeurs fonctionnel
This commit is contained in:
parent
3205d7868d
commit
19cf9136b9
|
@ -442,7 +442,7 @@ eclairng="<volume user=\"*\" fstype=\"cifs\" server=\"$ip_scribe\" path=\"eclair
|
|||
grep "/media/Serveur_Scribe" /etc/security/pam_mount.conf.xml >/dev/null
|
||||
if [ $? != 0 ]
|
||||
then
|
||||
sed -i "/<\!-- Volume definitions -->/a\ $eclairng"
|
||||
sed -i "/<\!-- Volume definitions -->/a\ $eclairng" /etc/security/pam_mount.conf.xml
|
||||
else
|
||||
echo "eclairng déjà présent"
|
||||
fi
|
||||
|
@ -459,11 +459,29 @@ groupes="<volume user=\"*\" fstype=\"cifs\" server=\"$ip_scribe\" path=\"groupes
|
|||
grep "mountpoint=\"~\"" /etc/security/pam_mount.conf.xml >/dev/null
|
||||
if [ $? != 0 ]
|
||||
then
|
||||
sed -i "/<\!-- Volume definitions -->/a\ $groupes"
|
||||
sed -i "/<\!-- Volume definitions -->/a\ $groupes" /etc/security/pam_mount.conf.xml
|
||||
else
|
||||
echo "groupes déjà présent"
|
||||
fi
|
||||
|
||||
commun="<volume user=\"*\" fstype=\"cifs\" server=\"$ip_scribe\" path=\"commun\" mountpoint=\"~/commun\" />"
|
||||
grep "mountpoint=\"~\"" /etc/security/pam_mount.conf.xml >/dev/null
|
||||
if [ $? != 0 ]
|
||||
then
|
||||
sed -i "/<\!-- Volume definitions -->/a\ $commun" /etc/security/pam_mount.conf.xml
|
||||
else
|
||||
echo "commun déjà présent"
|
||||
fi
|
||||
|
||||
professeurs="<volume user=\"*\" fstype=\"cifs\" server=\"$ip_scribe\" path=\"professeurs\" mountpoint=\"~/professeurs\" />"
|
||||
grep "mountpoint=\"~\"" /etc/security/pam_mount.conf.xml >/dev/null
|
||||
if [ $? != 0 ]
|
||||
then
|
||||
sed -i "/<\!-- Volume definitions -->/a\ $professeurs" /etc/security/pam_mount.conf.xml
|
||||
else
|
||||
echo "professeurs déjà présent"
|
||||
fi
|
||||
|
||||
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
|
||||
if [ $? != 0 ]
|
||||
|
|
Loading…
Reference in New Issue