Add Bach Testing Framework and several basic test cases

This commit is contained in:
Chai Feng 2019-10-12 22:15:01 +08:00
parent 05006bf638
commit df963fdb31
4 changed files with 207 additions and 0 deletions

View file

@ -382,6 +382,8 @@ function die() {
exit 1
}
# __main__
if ! ufw status 2>/dev/null | grep -Fq "Status: active" ; then
die "UFW is disabled or you are not root user."
fi