Check user is etu

master
Louis Royer 5 years ago
parent 59f3b8ea68
commit f1dd4e22e9

@ -1,4 +1,9 @@
#!/usr/bin/env
#!/usr/bin/env bash
if [ "$USER" -e "etu"] then
echo "Please run this script with user `etu` instead."
exit
fi
echo "Setting keyboard to bepo (shift-left+shift-right to go back to azerty"
echo 'setxkbmap -layout "fr,fr" -variant bepo, -option "grp:shifts_toggle"' >> /home/etu/.bashrc
@ -18,5 +23,10 @@ sudo cp tp/vim/vimrc /root/.vimrc
sudo cp tp/vim/vimrc.bepo /root/.vimrc.bepo
sudo chown root:root /root/.vimrc*
echo "Installing .vimrc for etu"
sudo cp tp/vim/vimrc /home/etu/.vimrc
sudo cp tp/vim/vimrc.bepo /home/etu/.vimrc.bepo
sudo chown etu:etu /home/etu/.vimrc*
echo "End for installation, lets begin your work!"

Loading…
Cancel
Save