|
@@ -1,14 +1,13 @@
|
|
|
#!/bin/bash
|
|
|
|
|
|
rm -rf shadow.data/
|
|
|
-shadow --template-directory shadow.data.template shadow.yaml > shadow.log
|
|
|
+shadow --template-directory shadow.data.template shadow.yaml > shadow.log ;
|
|
|
+ret=$?
|
|
|
|
|
|
declare -A groups
|
|
|
groups[group1]="Alice Bob Carol"
|
|
|
groups[group2]="Alice Bob Dave"
|
|
|
|
|
|
-ret=0
|
|
|
-
|
|
|
check_one_log() {
|
|
|
counts="$(grep -Ec "$1" shadow.data/hosts/*/*.stdout | cut -d: -f2 | sort -n)"
|
|
|
if [[ $(echo "$counts" | tail -1) -lt $2 ]] ; then
|