Skip to content

Instantly share code, notes, and snippets.

@adamamyl
Created October 27, 2014 20:23
Show Gist options
  • Save adamamyl/04610d948069bd02254c to your computer and use it in GitHub Desktop.
Save adamamyl/04610d948069bd02254c to your computer and use it in GitHub Desktop.
Combine ckan_dev users' keys into one file.
#!/bin/bash
cd ~/projects/okf/okfn-infra/ansible/files/keys
for U in `grep -C 1 ckan_dev ../../vars/users.yml | awk -F: '/name:/ {print $NF}' | sed -e "s/\'//g" -e "s/ //g"`
do
cat $U*.pub >> ~/tmp/ckan_dev-keys.pub
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment