From 6ca28bad6390bdea4ecfd55a6de013c2e7aba494 Mon Sep 17 00:00:00 2001
From: David Beniamine <david.beniamine@tetras-libre.fr>
Date: Mon, 22 Jan 2018 18:08:13 +0100
Subject: [PATCH] Several fixes + mount shared

---
 deploy.sh                            | 7 ++++++-
 dist/etc/security/pam_mount.conf.xml | 9 ++++++++-
 2 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/deploy.sh b/deploy.sh
index 834f425..32d404f 100755
--- a/deploy.sh
+++ b/deploy.sh
@@ -23,7 +23,12 @@ done
 # remove local users
 for user in 01-mini 02-super 03-maxi direction prof
 do
-	sudo deluser --remove-home $user
+	sudo deluser $user
 done
 echo "looking for admin ldap user"
 sudo getent passwd admin
+echo "Fixing handy menu"
+for level in 01-mini 02-super 03-maxi
+do
+    sudo sed -i.bak s@/home/$level@~@g /usr/share/handymenu-${level/0[1-3]-/}/hm_utils.py
+done
diff --git a/dist/etc/security/pam_mount.conf.xml b/dist/etc/security/pam_mount.conf.xml
index cfa8581..c4c7fb8 100644
--- a/dist/etc/security/pam_mount.conf.xml
+++ b/dist/etc/security/pam_mount.conf.xml
@@ -13,7 +13,14 @@
 <debug enable="0" />
 
 		<!-- Volume definitions -->
-		<volume user="*" fstype="cifs" server="192.168.234.6" path="%(DOMAIN_USER)" mountpoint="/home/%(DOMAIN_USER)" options="user,sec=ntlm,nodev,nosuid" />
+		<volume user="*" fstype="cifs" server="192.168.234.6" path="%(DOMAIN_USER)" mountpoint="/home/%(DOMAIN_USER)" />
+
+		<volume user="*" fstype="cifs" server="192.168.234.6" path="Profs" mountpoint="/home/Profs" options="gid=5002"/>
+		<volume user="*" fstype="cifs" server="192.168.234.6" path="Eleves" mountpoint="/home/Eleves" />
+		<volume user="*" fstype="cifs" server="192.168.234.6" path="Administratifs" mountpoint="/home/Administratifs" options="gid=5003" />
+		<volume user="*" fstype="cifs" server="192.168.234.6" path="Ecole" mountpoint="/home/Ecole" />
+		<volume user="*" fstype="cifs" server="192.168.234.6" path="Applis" mountpoint="/home/Applis" />
+		<volume user="*" fstype="cifs" server="192.168.234.6" path="IPC$" mountpoint="/home/IPC" />
 
 
 		<!-- pam_mount parameters: General tunables -->
-- 
GitLab