Skip to content
Snippets Groups Projects

Remove specific users and make it only work with linuxci

Merged Marta Vila Fernandes requested to merge config into master
1 file
+ 1
8
Compare changes
  • Side-by-side
  • Inline
+ 1
8
@@ -8,15 +8,8 @@ if [ "x$USER" == "x" ]; then
cat /etc/linuxci.credential | kinit linuxci &>/dev/null
USER=`klist | grep "Default principal" | cut -d '@' -f 1 | cut -d ' ' -f 3`
fi
[ "x$USER" == "xairibarr" ] && USERFULL="Alex Iribarren" && USEREMAIL="alex.iribarren@cern.ch" && _GOTUSER=1
[ "x$USER" == "xuschwick" ] && USERFULL="Ulrich Schwickerath" && USEREMAIL="ulrich.schwickerath@cern.ch" && _GOTUSER=1
[ "x$USER" == "xschwicke" ] && USERFULL="Ulrich Schwickerath" && USEREMAIL="ulrich.schwickerath@cern.ch" && _GOTUSER=1
[ "x$USER" == "xdabadaba" ] && USERFULL="Daniel Abad" && USEREMAIL="d.abad@cern.ch" && _GOTUSER=1
[ "x$USER" == "xmorrice" ] && USERFULL="Ben Morrice" && USEREMAIL="ben.morrice@cern.ch" && _GOTUSER=1
[ "x$USER" == "xjrische" ] && USERFULL="Julien Rische" && USEREMAIL="julien.rische@cern.ch" && _GOTUSER=1
[ "x$USER" == "xdjuarezg" ] && USERFULL="Daniel Juarez" && USEREMAIL="djuarezg@cern.ch" && _GOTUSER=1
[ "x$USER" == "xlinuxci" ] && USERFULL="CERN Linux Droid" && USEREMAIL="linux.ci@cern.ch" && _GOTUSER=1
[ $_GOTUSER -eq 0 ] && echo -e $ROUGE "*** Unknown user (fullname)" && exit 1
[ $_GOTUSER -eq 0 ] && echo -e $ROUGE "*** User krb credential only works with linuxci. Please do 'kdestroy' and run the script again." && exit 1
# Learn colors in french
VERT="\\033[1;32m"
Loading