|
@@ -1,11 +1,11 @@
|
|
|
#!/bin/bash
|
|
|
if [ "$1" == "disable" ]; then
|
|
|
bin/cli sed -i -e 's/^zend_extension/\;zend_extension/g' /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
|
|
|
- bin/restart
|
|
|
+ bin/restart phpfpm
|
|
|
echo "Xdebug has been disabled."
|
|
|
elif [ "$1" == "enable" ]; then
|
|
|
bin/cli sed -i -e 's/^\;zend_extension/zend_extension/g' /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
|
|
|
- bin/restart
|
|
|
+ bin/restart phpfpm
|
|
|
echo "Xdebug has been enabled."
|
|
|
else
|
|
|
echo "Please specify either 'enable' or 'disable' as an argument"
|