qiqi657s commited on
Commit
949cff3
·
verified ·
1 Parent(s): 13adcd1

Update init_chrome.sh

Browse files
Files changed (1) hide show
  1. init_chrome.sh +2 -2
init_chrome.sh CHANGED
@@ -5,9 +5,9 @@ PROXY=${PROXY:-""}
5
 
6
  # 检查是否需要设置代理
7
  if [ -n "$PROXY" ]; then
8
- CMD="/usr/bin/google-chrome-stable --remote-debugging-port=9200 --user-data-dir=/app/cache --proxy-server=$PROXY --headless=new --no-sandbox --disable-gpu"
9
  else
10
- CMD="/usr/bin/google-chrome-stable --remote-debugging-port=9200 --user-data-dir=/app/cache --headless=new --no-sandbox --disable-gpu"
11
  fi
12
 
13
  # 启动 Chrome 浏览器(后台运行)
 
5
 
6
  # 检查是否需要设置代理
7
  if [ -n "$PROXY" ]; then
8
+ CMD="/usr/bin/google-chrome-stable --remote-debugging-port=9200 --user-data-dir=~/cache --proxy-server=$PROXY --headless=new --no-sandbox --disable-gpu"
9
  else
10
+ CMD="/usr/bin/google-chrome-stable --remote-debugging-port=9200 --user-data-dir=~/cache --headless=new --no-sandbox --disable-gpu"
11
  fi
12
 
13
  # 启动 Chrome 浏览器(后台运行)