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

Update launch.sh

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