Skip to content
Snippets Groups Projects
Verified Commit 0d7cd528 authored by David Beniamine's avatar David Beniamine
Browse files

Remove uselss script

parent 7b013b91
No related branches found
No related tags found
No related merge requests found
#!/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 purge libpam-ldap libnss-ldap nscd smbclient winbind cifs-utils libpam-mount
# remove LDAP config
for f in `find dist/ -type f -exec dirname {} \; | sort -u`
do
rm -rf ${f/dist/}
done
# TODO recreate home frome skels
echo "looking for admin ldap user"
getent passwd admin
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment