Last active
March 28, 2016 21:54
-
-
Save lukasheinrich/15c03198e4ec7cdeb3a6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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