|
@@ -1,4 +1,4 @@
|
|
-#!/bin/bash
|
|
|
|
|
|
+#!/usr/bin/env bash
|
|
|
|
|
|
# Check if the script is running on Linux
|
|
# Check if the script is running on Linux
|
|
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
|
|
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
|
|
@@ -15,7 +15,7 @@ if [[ "$OSTYPE" == "linux-gnu"* ]]; then
|
|
fi
|
|
fi
|
|
|
|
|
|
# Ask the user whether to execute the iptables command
|
|
# Ask the user whether to execute the iptables command
|
|
- read -r -p "Do you want to open port 9003 for xdebug? (y/n): " choice
|
|
|
|
|
|
+ read -r -p "Do you want to open port 9003 for Xdebug? (y/n): " choice
|
|
if [ "$choice" == "y" ]; then
|
|
if [ "$choice" == "y" ]; then
|
|
sudo iptables -A INPUT -p tcp --dport 9003 -j ACCEPT
|
|
sudo iptables -A INPUT -p tcp --dport 9003 -j ACCEPT
|
|
echo "Port 9003 has been opened for xdebug."
|
|
echo "Port 9003 has been opened for xdebug."
|