mirror of
https://github.com/chaifeng/ufw-docker.git
synced 2025-06-28 06:56:13 +02:00
add service name in the env variable
This commit is contained in:
parent
7e659b23c9
commit
8712595939
2 changed files with 13 additions and 6 deletions
|
@ -23,7 +23,7 @@ function update-ufw-rules() {
|
|||
-e 's/="/ /' \
|
||||
-e 's/"$//' |
|
||||
while read id port; do
|
||||
ufw-allow-or-deny-service "${id}" "${port}"
|
||||
ufw-allow-or-deny-service "${id}" "${port%*/}"
|
||||
done
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue