Spaces:
Running
Running
Update launch.sh
Browse files
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
|
59 |
cp config/config.yaml history/config.yaml
|
60 |
-
ln -s history/config.yaml config
|
61 |
-
sed -i "s/username: .*/username: \"${USERNAME}\"/" ${BASE}/config
|
62 |
-
sed -i "s/password: .*/password: \"${PASSWORD}\"/" ${BASE}/config
|
|
|
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
|