4PEb6b commited on
Commit
e8d1b05
·
verified ·
1 Parent(s): 1101b84

Update launch.sh

Browse files
Files changed (1) hide show
  1. launch.sh +0 -15
launch.sh CHANGED
@@ -8,18 +8,12 @@ function env() {
8
  if [[ ! -z "${fetch}" ]]; then
9
  echo '远程获取参数...'
10
  curl -s "$fetch" -o data.json
11
- export reverse_proxy=$(jq -r .reverse_proxy data.json)
12
- export proxy_password=$(jq -r .proxy_password data.json)
13
- export api_key_makersuite=$(jq -r .api_key_makersuite data.json)
14
  export github_secret=$(jq -r .github_secret data.json)
15
  export github_project=$(jq -r .github_project data.json)
16
  fi
17
 
18
  echo
19
  echo "fetch = ${fetch}"
20
- echo "reverse_proxy = $reverse_proxy"
21
- echo "proxy_password = $proxy_password"
22
- echo "api_key_makersuite = $api_key_makersuite"
23
  echo "github_secret = $github_secret"
24
  echo "github_project = $github_project"
25
  echo "USERNAME = ${USERNAME}"
@@ -27,17 +21,8 @@ function env() {
27
  echo
28
  echo
29
 
30
- IFS="," RESOURCES="糖水galV1.9.0g,糖水otomeV1.9.0g,修改版 V1.4.8_KaruKaru,修改版 V1.4.9_KaruKaru" && \
31
- \
32
- echo "*** Edit default $RESOURCES in OpenAI Settings ***" && \
33
- for R in $RESOURCES; do sed -i "s#\"reverse_proxy\": \"\",#\"reverse_proxy\": \"${reverse_proxy}\",#g" "data/default-user/OpenAI Settings/$R.json"; done || true && \
34
- for R in $RESOURCES; do sed -i "s#\"proxy_password\": \"\",#\"proxy_password\": \"${proxy_password}\",#g" "data/default-user/OpenAI Settings/$R.json"; done || true
35
- sed -i "s/\"api_key_makersuite\": \"\"/\"api_key_makersuite\": \"${api_key_makersuite}\"/g" secrets.json
36
  sed -i "s/\[github_secret\]/${github_secret}/g" launch.sh
37
  sed -i "s#\[github_project\]#${github_project}#g" launch.sh
38
-
39
- sed -i "s#\[proxies_url\]#${reverse_proxy}#g" config/settings.json
40
- sed -i "s/\[proxies_passwd\]/${proxy_password}/g" config/settings.json
41
  }
42
 
43
  function init() {
 
8
  if [[ ! -z "${fetch}" ]]; then
9
  echo '远程获取参数...'
10
  curl -s "$fetch" -o data.json
 
 
 
11
  export github_secret=$(jq -r .github_secret data.json)
12
  export github_project=$(jq -r .github_project data.json)
13
  fi
14
 
15
  echo
16
  echo "fetch = ${fetch}"
 
 
 
17
  echo "github_secret = $github_secret"
18
  echo "github_project = $github_project"
19
  echo "USERNAME = ${USERNAME}"
 
21
  echo
22
  echo
23
 
 
 
 
 
 
 
24
  sed -i "s/\[github_secret\]/${github_secret}/g" launch.sh
25
  sed -i "s#\[github_project\]#${github_project}#g" launch.sh
 
 
 
26
  }
27
 
28
  function init() {