Skip to content

Instantly share code, notes, and snippets.

@lukasheinrich
Last active March 28, 2016 21:54
Show Gist options
  • Save lukasheinrich/15c03198e4ec7cdeb3a6 to your computer and use it in GitHub Desktop.
Save lukasheinrich/15c03198e4ec7cdeb3a6 to your computer and use it in GitHub Desktop.
#!/bin/sh
hostname=$1
cern-get-certificate --autoenroll --grid
echo "$(date) ::::RECAST:::: done setting up cern keytab/cert"
usermod -aG docker recast
echo "$(date) ::::RECAST:::: setting up grid stuff"
mkdir -p /home/recast/recast_auth
cp "/etc/pki/tls/certs/$hostname.cern.ch.grid.pem" /home/recast/recast_auth/host.cert
cp "/etc/pki/tls/private/$hostname.cern.ch.grid.key" /home/recast/recast_auth/privkey.pem
chmod 400 /home/recast/recast_auth/privkey.pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment