wIK5Ez2o commited on
Commit
6d828a3
·
verified ·
1 Parent(s): 8099ed1

Update launch.sh

Browse files
Files changed (1) hide show
  1. launch.sh +6 -6
launch.sh CHANGED
@@ -30,7 +30,7 @@ function init() {
30
  cd ${BASE}/history
31
 
32
  git config --global user.email "[email protected]"
33
- git config --global user.name "complete-Mmx"
34
  git config --global init.defaultBranch main
35
  git init
36
  git remote add origin https://[github_secret]@github.com/[github_project].git
@@ -55,13 +55,13 @@ function init() {
55
 
56
  rm -r config.yaml
57
  cp config/config.yaml history/config.yaml
 
 
 
 
58
  ln -s history/config.yaml config.yaml
59
- sed -i "s/username: .*/username: \"${USERNAME}\"/" ${BASE}/config.yaml
60
- sed -i "s/password: .*/password: \"${PASSWORD}\"/" ${BASE}/config.yaml
61
- sed -i "s/whitelistMode: true/whitelistMode: false/" ${BASE}/config.yaml
62
- sed -i "s/basicAuthMode: false/basicAuthMode: true/" ${BASE}/config.yaml
63
  cat config.yaml
64
- echo "Init history."
65
  chmod -R 777 history
66
 
67
  nohup ./git-batch --commit 10s --name git-batch --email [email protected] --push 1m -p history > access.log 2>1 &
 
30
  cd ${BASE}/history
31
 
32
  git config --global user.email "[email protected]"
33
+ git config --global user.name "git-batch"
34
  git config --global init.defaultBranch main
35
  git init
36
  git remote add origin https://[github_secret]@github.com/[github_project].git
 
55
 
56
  rm -r config.yaml
57
  cp config/config.yaml history/config.yaml
58
+ sed -i "s/username: .*/username: \"${USERNAME}\"/" ${BASE}/history/config.yaml
59
+ sed -i "s/password: .*/password: \"${PASSWORD}\"/" ${BASE}/history/config.yaml
60
+ sed -i "s/whitelistMode: true/whitelistMode: false/" ${BASE}/history/config.yaml
61
+ sed -i "s/basicAuthMode: false/basicAuthMode: true/" ${BASE}/history/config.yaml
62
  ln -s history/config.yaml config.yaml
 
 
 
 
63
  cat config.yaml
64
+ echo "Inited history."
65
  chmod -R 777 history
66
 
67
  nohup ./git-batch --commit 10s --name git-batch --email [email protected] --push 1m -p history > access.log 2>1 &