(feat) update bash scripts

This commit is contained in:
cardosofede
2023-05-05 10:39:44 -03:00
parent 6cfa158be6
commit 85ebeda280
2 changed files with 16 additions and 16 deletions

View File

@@ -86,14 +86,14 @@ create_instance () {
docker run -it --log-opt max-size=10m --log-opt max-file=5 \
--name $INSTANCE_NAME \
--network host \
-v $CONF_FOLDER:/conf \
-v $CONF_FOLDER/connectors:/conf/connectors \
-v $CONF_FOLDER/strategies:/conf/strategies \
-v $LOGS_FOLDER:/logs \
-v $DATA_FOLDER:/data \
-v $PMM_SCRIPTS_FOLDER:/pmm_scripts \
-v $SCRIPTS_FOLDER:/scripts \
-v $CERTS_FOLDER:/certs \
-v $CONF_FOLDER:/home/hummingbot/conf \
-v $CONF_FOLDER/connectors:/home/hummingbot/conf/connectors \
-v $CONF_FOLDER/strategies:/home/hummingbot/conf/strategies \
-v $LOGS_FOLDER:/home/hummingbot/logs \
-v $DATA_FOLDER:/home/hummingbot/data \
-v $PMM_SCRIPTS_FOLDER:/home/hummingbot/pmm_scripts \
-v $SCRIPTS_FOLDER:/home/hummingbot/scripts \
-v $CERTS_FOLDER:/home/hummingbot/certs \
hummingbot/hummingbot:$TAG
}

View File

@@ -105,14 +105,14 @@ execute_docker () {
docker run -itd --log-opt max-size=10m --log-opt max-file=5 \
--network host \
--name ${INSTANCES[$j]} \
-v ${FOLDERS[$j]}/conf:/conf \
-v ${FOLDERS[$j]}/conf/connectors:/conf/connectors \
-v ${FOLDERS[$j]}/conf/strategies:/conf/strategies \
-v ${FOLDERS[$j]}/logs:/logs \
-v ${FOLDERS[$j]}/data:/data \
-v ${FOLDERS[$j]}/pmm-scripts:/pmm-scripts \
-v ${FOLDERS[$j]}/scripts:/scripts \
-v ${FOLDERS[$j]}/certs:/certs \
-v ${FOLDERS[$j]}/conf:/home/hummingbot/conf \
-v ${FOLDERS[$j]}/conf/connectors:/home/hummingbot/conf/connectors \
-v ${FOLDERS[$j]}/conf/strategies:/home/hummingbot/conf/strategies \
-v ${FOLDERS[$j]}/logs:/home/hummingbot/logs \
-v ${FOLDERS[$j]}/data:/home/hummingbot/data \
-v ${FOLDERS[$j]}/pmm-scripts:/home/hummingbot/pmm-scripts \
-v ${FOLDERS[$j]}/scripts:/home/hummingbot/scripts \
-v ${FOLDERS[$j]}/certs:/home/hummingbot/certs \
hummingbot/hummingbot:$TAG
j=$[$j+1]
# Update file ownership