diff options
author | SeekingFor <SeekingFor@sfor.something> | 2013-11-01 15:53:43 +0000 |
---|---|---|
committer | SeekingFor <SeekingFor@sfor.something> | 2013-11-01 15:53:43 +0000 |
commit | 2d36bc2b39072bf991aaec5b2b6d40dd33c4f046 (patch) | |
tree | 0789805e80ddb6ad8abe10d03bddd563bbff57b2 /scripts/check_db_safety | |
parent | 384487ab14b45ecd40783ed2ddaa6ef433f542e6 (diff) | |
parent | 1c0dfe1d6fbd33f24da3e8bad01acbb7565e6d3d (diff) | |
download | resdb-2d36bc2b39072bf991aaec5b2b6d40dd33c4f046.tar.gz resdb-2d36bc2b39072bf991aaec5b2b6d40dd33c4f046.zip |
Merge git://1.41.41.1
Diffstat (limited to 'scripts/check_db_safety')
-rwxr-xr-x | scripts/check_db_safety | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/check_db_safety b/scripts/check_db_safety index db69015..9b2e98c 100755 --- a/scripts/check_db_safety +++ b/scripts/check_db_safety @@ -11,14 +11,14 @@ for tld in db/dom/* ; do exit 1 fi for dom in $tld/* ; do - if [ "$(ls $dom/ns/ | tr -d 'a-z0-9\n.-' | wc -c | tr -d ' \t')" != 0 ]; then + if [ "$(ls $dom/ns/ | tr -d 'A-Fa-z0-9\n.-:' | wc -c | tr -d ' \t')" != 0 ]; then domain="$(basename $dom).$(basename $tld)" echo "There's a bad nameserver under $domain." >&2 echo "You probably don't want to run any shell scripts." >&2 exit 1 fi for ns in $dom/ns/* ; do - if [ "$(cat $ns | tr -d '0-9.\r\n' | wc -c | tr -d ' \t')" != 0 ]; then + if [ "$(cat $ns | tr -d 'A-Fa-f0-9.:\r\n' | wc -c | tr -d ' \t')" != 0 ]; then domain="$(basename $dom).$(basename $tld)" nsname="$(basename $ns)" echo "There's a bad nameserver IP under $domain, for" >&2 |