Spaces:
Running
Running
Update launch.sh
Browse files
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 |
-
|
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
|