#!/bin/sh

if [[ -n $XDEBUG_HOST ]]; then
    sed -i.bak s/^zend_extension/\;zend_extension/g /etc/php.d/15-xdebug.ini
else
    sed -i.bak s/^\;zend_extension/zend_extension/g /etc/php.d/15-xdebug.ini
    echo "xdebug.remote_enable=on" >> /usr/local/etc/php/conf.d/xdebug.ini
    echo "xdebug.remote_host=$XDEBUG_HOST" >> /usr/local/etc/php/conf.d/xdebug.ini
fi
#!/bin/bash

if [[ -n $XDEBUG_HOST ]]; then
    sed -i.bak s/^zend_extension/\;zend_extension/g /etc/php.d/15-xdebug.ini
else
    sed -i.bak s/^\;zend_extension/zend_extension/g /etc/php.d/15-xdebug.ini
    echo "xdebug.remote_enable=on" >> /usr/local/etc/php/conf.d/xdebug.ini
    echo "xdebug.remote_host=$XDEBUG_HOST" >> /usr/local/etc/php/conf.d/xdebug.ini
fi

exec /usr/bin/supervisord -n -c /etc/supervisord.conf
--- 
+++ 
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 
 if [[ -n $XDEBUG_HOST ]]; then
     sed -i.bak s/^zend_extension/\;zend_extension/g /etc/php.d/15-xdebug.ini
@@ -7,3 +7,5 @@
     echo "xdebug.remote_enable=on" >> /usr/local/etc/php/conf.d/xdebug.ini
     echo "xdebug.remote_host=$XDEBUG_HOST" >> /usr/local/etc/php/conf.d/xdebug.ini
 fi
+
+exec /usr/bin/supervisord -n -c /etc/supervisord.conf
Change to sh instead of bash
