4PEb6b commited on
Commit
2e431a7
·
verified ·
1 Parent(s): a343d7e

Update launch.sh

Browse files
Files changed (1) hide show
  1. launch.sh +5 -6
launch.sh CHANGED
@@ -41,8 +41,6 @@ function init() {
41
 
42
  cd ${BASE}
43
 
44
-
45
-
46
  DIR="${BASE}/history"
47
  if [ "$(ls -A $DIR | grep -v .git)" ]; then
48
  echo "Has history..."
@@ -55,11 +53,12 @@ function init() {
55
  rm -rf data
56
  ln -s history data
57
 
58
- rm -r config/config.yaml
59
  cp config/config.yaml history/config.yaml
60
- ln -s history/config.yaml config/config.yaml
61
- sed -i "s/username: .*/username: \"${USERNAME}\"/" ${BASE}/config/config.yaml
62
- sed -i "s/password: .*/password: \"${PASSWORD}\"/" ${BASE}/config/config.yaml
 
63
  cat config.yaml
64
  echo "Init history."
65
  chmod -R 777 history
 
41
 
42
  cd ${BASE}
43
 
 
 
44
  DIR="${BASE}/history"
45
  if [ "$(ls -A $DIR | grep -v .git)" ]; then
46
  echo "Has history..."
 
53
  rm -rf data
54
  ln -s history data
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
  cat config.yaml
63
  echo "Init history."
64
  chmod -R 777 history