wIK5Ez2o commited on
Commit
c7b5034
·
verified ·
1 Parent(s): 1700000

Update launch.sh

Browse files
Files changed (1) hide show
  1. launch.sh +3 -5
launch.sh CHANGED
@@ -1,7 +1,5 @@
1
  #!/bin/sh
2
 
3
- BASE=
4
-
5
  function env() {
6
  if [[ ! -z "${fetch}" ]]; then
7
  echo '远程获取参数...'
@@ -22,8 +20,8 @@ function env() {
22
  }
23
 
24
  function init() {
25
- mkdir ${BASE}/data
26
- cd ${BASE}/data
27
 
28
  git config --global user.email "[email protected]"
29
  git config --global user.name "git-batch"
@@ -35,7 +33,7 @@ function init() {
35
  git commit -m "'update data $(date "+%Y-%m-%d %H:%M:%S")'"
36
  git pull origin main
37
 
38
- cd ${BASE}
39
  chmod -R 777 data
40
  nohup ./git-batch --commit 10s --name git-batch --email [email protected] --push 1m -p data > access.log 2>1 &
41
  }
 
1
  #!/bin/sh
2
 
 
 
3
  function env() {
4
  if [[ ! -z "${fetch}" ]]; then
5
  echo '远程获取参数...'
 
20
  }
21
 
22
  function init() {
23
+ mkdir -p /data
24
+ cd /data
25
 
26
  git config --global user.email "[email protected]"
27
  git config --global user.name "git-batch"
 
33
  git commit -m "'update data $(date "+%Y-%m-%d %H:%M:%S")'"
34
  git pull origin main
35
 
36
+ cd /
37
  chmod -R 777 data
38
  nohup ./git-batch --commit 10s --name git-batch --email [email protected] --push 1m -p data > access.log 2>1 &
39
  }