mirror of
https://github.com/sascha-hemi/ufw-docker.git
synced 2026-03-21 06:06:12 +01:00
Merge pull request #27 from tobiashe/master
fixing issue \#25 Doesn't with other locale
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user