#!/bin/sh if docker ps | grep -q 'seeddms$'; then docker exec seeddms "cd /srv/seeddms/www/utils/ && /usr/bin/php indexer.php --config ../conf/settings.xml" >/dev/null fi