mirror of
https://github.com/chaifeng/ufw-docker.git
synced 2025-05-10 21:48:30 +02:00
fixing issue \#25 Doesn't with other locale
This commit is contained in:
parent
3d2259125b
commit
86568044ed
1 changed files with 1 additions and 1 deletions
|
@ -379,7 +379,7 @@ function die() {
|
|||
exit 1
|
||||
}
|
||||
|
||||
if ! ufw status 2>/dev/null | grep -Fq "Status: active" ; then
|
||||
if ! eval "LANG=C ufw status 2>/dev/null | grep -Fq \"Status: active\"" ; then
|
||||
die "UFW is disabled or you are not root user."
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue