dockerizing_cassandra/scripts/is_primary_node.sh

12 lines
153 B
Bash
Executable File

#!/bin/bash
# PRIMARY_NODE=${PRIMARY_NODE:-}
echo PRIMARY_NODE: $PRIMARY_NODE
if [ "$PRIMARY_NODE" = "true" ]; then
exit 0
else
exit 1
fi