This commit is contained in:
pvincent
2024-10-11 01:31:24 +04:00
parent 609603a437
commit 3ad16ee583
12 changed files with 20 additions and 50 deletions
-2
View File
@@ -4,7 +4,6 @@ function check() {
PREFIX="recipe:redis:check"
container_running "$CONTAINER" || return 10
echo "checking redis regarding access to its ip address <$REDIS_IP>..."
lxc exec "$CONTAINER" -- bash <<EOF
set -Eeuo pipefail
@@ -14,7 +13,6 @@ function check() {
grep -Eq "^protected-mode no" /etc/redis/redis.conf
EOF
status="$?"
[[ $status -eq 0 ]] && echo "container <$CONTAINER> approved!"
return $status
}