Select Git revision
unlizeToNotebook.py
-
David Rouquet authoredDavid Rouquet authored
deploy.sh 549 B
#!/bin/bash
read -p "This script should be run on Primtux to synchronise ldap do you want to continue [y/N]" ans
if [ "$ans" != "y" ]
then
exit 1
fi
sudo apt-get update
sudo apt-get -y -q install libpam-ldap libnss-ldap nscd smbclient winbind cifs-utils libpam-mount ldap-utils kdm
# remove local users
for user in 01-mini 02-super 03-maxi direction prof
do
sudo deluser $user
done
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