Syntax error
This commit is contained in:
parent
f58ea79846
commit
10e9ad34f7
@ -5,7 +5,7 @@ do
|
|||||||
CONTAINER_NAME=$(docker ps -aq --filter "id=$CONTAINER_ID" --format '{{.Names}}') # get the container's name
|
CONTAINER_NAME=$(docker ps -aq --filter "id=$CONTAINER_ID" --format '{{.Names}}') # get the container's name
|
||||||
CONTAINER_MOUNTS=$(docker inspect --format '{{range .Mounts}}{{println .Source}}{{end}}' $CONTAINER_ID) # print the container's volume mounts
|
CONTAINER_MOUNTS=$(docker inspect --format '{{range .Mounts}}{{println .Source}}{{end}}' $CONTAINER_ID) # print the container's volume mounts
|
||||||
echo "======== CHECKING $CONTAINER_NAME ========"
|
echo "======== CHECKING $CONTAINER_NAME ========"
|
||||||
if $(echo "$CONTAINER_MOUNTS" | grep /mnt/nas)
|
if $(echo "$CONTAINER_MOUNTS" | grep /mnt/nas); then
|
||||||
echo "IS NAS DEPENDENT"
|
echo "IS NAS DEPENDENT"
|
||||||
else
|
else
|
||||||
echo "IS NOT NAS DEPENDENT"
|
echo "IS NOT NAS DEPENDENT"
|
||||||
|
Loading…
Reference in New Issue
Block a user