#!/bin/bash if php -m | grep -q relay; then echo "Relay is enabled" else echo "Relay is disabled" fi