comparison scripts/ns2ip @ 1193:2f57d4d36759 draft

add muh nameserver, some script tweaks
author cathugger <cathugger@cock.li>
date Fri, 10 Mar 2017 03:30:16 +0000
parents 13b137e470cb
children
comparison
equal deleted inserted replaced
1192:a0de6dd1652e 1193:2f57d4d36759
1 #!/bin/sh 1 #!/bin/sh
2 2
3 opt="$1" 3 opt="$1"
4 if [ "x$opt" = "x-f" ]; then 4 if [ "x$opt" = "x-f" ]; then
5 shift 5 shift
6 elif ! ./scripts/check_db_safety; then 6 elif ! `dirname "$0"`/check_db_safety; then
7 exit 1 7 exit 1
8 fi 8 fi
9 ns="$1" 9 ns="$1"
10 10
11 path="`find db/dom/ -ipath '*/ns/'\"$ns\" -size +1c | head -n 1`" 11 path="`find db/dom/ -ipath '*/ns/'\"$ns\" -size +1c | head -n 1`"