瀏覽代碼

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

dosse91 3 年之前
父節點
當前提交
2f19331378
共有 1 個文件被更改,包括 5 次插入0 次删除
  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