Skip to content

Commit 3478b9b

Browse files
committed
[docker] Making docker happy again
1 parent e3ca856 commit 3478b9b

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

bin/countly.install_ubuntu.sh

+10-8
Original file line numberDiff line numberDiff line change
@@ -104,14 +104,16 @@ bash $DIR/scripts/countly.install.plugins.sh
104104
#get web sdk
105105
countly update sdk-web
106106

107-
# close google services for China area
108-
if ping -c 1 google.com >> /dev/null 2>&1; then
109-
echo "Pinging Google successful. Enabling Google services."
110-
countly plugin disable EChartMap
111-
else
112-
echo "Cannot reach Google. Disabling Google services. You can enable this from Configurations later."
113-
countly config "frontend.use_google" false
114-
countly plugin enable EChartMap
107+
if [ "$INSIDE_DOCKER" != "1" ]; then
108+
# close google services for China area
109+
if ping -c 1 google.com >> /dev/null 2>&1; then
110+
echo "Pinging Google successful. Enabling Google services."
111+
countly plugin disable EChartMap
112+
else
113+
echo "Cannot reach Google. Disabling Google services. You can enable this from Configurations later."
114+
countly config "frontend.use_google" false
115+
countly plugin enable EChartMap
116+
fi
115117
fi
116118

117119
#compile scripts for production

0 commit comments

Comments
 (0)