blackbox_addadmin.sh: NEW: still untested.

blackbox_common.sh: Add comments.
This commit is contained in:
tlimoncelli@stackexchange.com
2014-08-26 16:03:25 -04:00
parent 8a14c28510
commit 9f78fd458b
2 changed files with 10 additions and 0 deletions

7
bin/blackbox_addadmin.sh Executable file
View File

@@ -0,0 +1,7 @@
#!/usr/bin/env bash
set -e
cd keyrings/live
touch blackbox-admins.txt
sort -fdu -o blackbox-admins.txt <(echo "$1") blackbox-admins.txt

View File

@@ -16,6 +16,9 @@ function fail_if_bad_environment() {
:
# TODO: Consider: cd $(git rev-parse --show-toplevel)
# And: hg root
## Are we in the base directory.
#if [[ ! $(pwd) =~ \/puppet$ ]]; then
# echo 'ERROR: Please run this script from the base directory.'