Skip to content

Commit 23652a5

Browse files
committed
Removed IP address validation due to docker network IP added.
1 parent 0a9e03b commit 23652a5

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

check.sh

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,28 +14,28 @@ if [ ! -f "${DOT_ENV}" ]; then
1414
echo "${BGGREEN}[OK] ${DOT_ENV} was created successfully.";
1515
fi
1616

17-
if [ -f "${DOT_ENV}" ]; then
18-
19-
YOUR_IP=$(grep -oP 'LOCAL_HOST_IP=\K([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3})' "${DOT_ENV}");
20-
21-
if [ ! -z "$YOUR_IP" ]; then
22-
if [ "$(command -v ifconfig)" = "/usr/sbin/ifconfig" ] && (ifconfig | grep -q "inet ${YOUR_IP}"); then
23-
echo "${BGGREEN}[OK] IP Address is fine and equals ${YOUR_IP}. This address is registered in .env file.";
24-
else
25-
echo "${BGYELLOW}[WARN] net-tools application is not installed. Unable to validate IP address. To verify the address please run 'sudo apt-get install net-tools'";
26-
fi
27-
elif grep -q -E "^LOCAL_HOST_IP=$" "${DOT_ENV}"; then
28-
echo "${BGYELLOW}[WARNING] IP Address is empty. xDebug for PHP may not work properly.";
29-
else
30-
echo "${BGRED}[FAIL] IP Address is wrong. Please check if your local address is really ${YOUR_IP}.";
31-
fi
17+
#if [ -f "${DOT_ENV}" ]; then
18+
#
19+
# YOUR_IP=$(grep -oP 'LOCAL_HOST_IP=\K([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3})' "${DOT_ENV}");
20+
#
21+
# if [ ! -z "$YOUR_IP" ]; then
22+
# if [ "$(command -v ifconfig)" = "/usr/sbin/ifconfig" ] && (ifconfig | grep -q "inet ${YOUR_IP}"); then
23+
# echo "${BGGREEN}[OK] IP Address is fine and equals ${YOUR_IP}. This address is registered in .env file.";
24+
# else
25+
# echo "${BGYELLOW}[WARN] net-tools application is not installed. Unable to validate IP address. To verify the address please run 'sudo apt-get install net-tools'";
26+
# fi
27+
# elif grep -q -E "^LOCAL_HOST_IP=$" "${DOT_ENV}"; then
28+
# echo "${BGYELLOW}[WARNING] IP Address is empty. xDebug for PHP may not work properly.";
29+
# else
30+
# echo "${BGRED}[FAIL] IP Address is wrong. Please check if your local address is really ${YOUR_IP}.";
31+
# fi
3232

3333
# if grep -q -E "^MAGENTO_APP_SECRET=[a-zA-Z0-9]{32}$" "${DOT_ENV}"; then
3434
# echo "${BGGREEN}[OK] Magento Secret key is correct.";
3535
# else
3636
# echo "${BGRED}[FAIL] Magento Secret key is wrong.";
3737
# fi
38-
fi
38+
#fi
3939

4040
# 2. Check composer.env file and it's content.
4141

0 commit comments

Comments
 (0)