Browse Source

Fixed a bug that caused the frontend-only mode to not work properly with telemetry enabled on the docker version

dosse91 3 years ago
parent
commit
2f19331378
1 changed files with 5 additions and 0 deletions
  1. 5 0
      docker/entrypoint.sh

+ 5 - 0
docker/entrypoint.sh

@@ -37,6 +37,11 @@ fi
 # Apply Telemetry settings when running in standalone or frontend mode and telemetry is enabled
 if [[ "$TELEMETRY" == "true" && ( "$MODE" == "frontend" || "$MODE" == "standalone" ) ]]; then
   cp -r /speedtest/results /var/www/html/results
+  
+  if [ "$MODE" == "frontend" ]; then
+    mkdir /var/www/html/backend
+    cp /speedtest/backend/getIP_util.php /var/www/html/backend
+  fi
 
   if  [ "$DB_TYPE" == "mysql" ]; then
     sed -i 's/$db_type = '\''.*'\''/$db_type = '\'$DB_TYPE\''/g' /var/www/html/results/telemetry_settings.php