#!/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
#!/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
Change to sh instead of bash
Change to sh instead of bash
