diff --git a/ufw-docker b/ufw-docker index 6e7f57d..6852280 100755 --- a/ufw-docker +++ b/ufw-docker @@ -109,7 +109,7 @@ function ufw-docker--service() { service_port="${2:-}" - die "ufw-docker--service-${service_action}" "${service_name}" "${service_port}" + "ufw-docker--service-${service_action}" "${service_name}" "${service_port}" ;; *) ufw-docker--help @@ -117,6 +117,15 @@ function ufw-docker--service() { esac } +ufw_docker_agent=ufw-docker-agent +ufw_docker_agent_image="${ufw_docker_agent_image:-chaifeng/${ufw_docker_agent}:181003}" + +function ufw-docker--service-allow() { + service_name="$1" + service_port="$2" + +} + function ufw-docker--install() { if ! grep "^# BEGIN UFW AND DOCKER\$" /etc/ufw/after.rules &>/dev/null; then err "Back up /etc/ufw/after.rules"