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

Split deploy on two scripts

parent 6ca28bad
No related branches found
No related tags found
No related merge requests found
......@@ -6,27 +6,12 @@ then
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
while [ -z "$SRV_NAME" ]
do
read -p "Please enter the name of the LDAP server (ex: DSIT or 0382693W)" SRV_NAME
done
# Prepare LDAP config
for f in dist/*
do
sudo cp -r $f /
done
for f in `find dist/ -type f`
do
sudo sed -i.orig "s/DSIT/$SRV_NAME/g" ${f/dist/}
done
# remove local users
for user in 01-mini 02-super 03-maxi direction prof
do
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
......
#!/bin/bash
while [ -z "$SRV_NAME" ]
do
read -p "Please enter the name of the LDAP server (ex: DSIT or 0382693W)" SRV_NAME
done
# Prepare LDAP config
for f in dist/*
do
sudo cp -r $f /
done
for f in `find dist/ -type f`
do
sudo sed -i.orig "s/DSIT/$SRV_NAME/g" ${f/dist/}
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment