blackbox_addadmin.sh: NEW: still untested.
blackbox_common.sh: Add comments.
This commit is contained in:
7
bin/blackbox_addadmin.sh
Executable file
7
bin/blackbox_addadmin.sh
Executable 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
|
||||
@@ -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.'
|
||||
|
||||
Reference in New Issue
Block a user