Updates for latest inspircd & anope
This commit is contained in:
@@ -28,3 +28,12 @@ if [ $? -ne 1 ]; then
|
||||
echo Otherwise, convert any files above to templates and encode the passphrase into your vault.
|
||||
exit 1;
|
||||
fi
|
||||
IFS="
|
||||
"
|
||||
for i in `ansible-vault decrypt --output - ${ANSIBLE_VAULT_FILE} | sed 's/\s\?-\?\s\?[A-Za-z0-9_]\+://' | grep -vE '\||password|^\s\?$|#|https://' | sed "s/^ \+['\"]\?//" | sed "s/[\"']\s\?//" | sort | uniq`; do
|
||||
grep -rl "${i}" . 2>/dev/null
|
||||
if [ $? -ne 1 ]; then
|
||||
echo "A secret starting with $(echo "$i" | cut -c 1-7) was found in the files above."
|
||||
exit 1;
|
||||
fi
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user