Files
deploy/bash_scripts/hummingbot-start.sh
2023-03-03 14:30:01 -03:00

21 lines
564 B
Bash
Executable File

#!/bin/bash
# init
# =============================================
# SCRIPT COMMANDS
echo
echo "=============== START HUMMINGBOT INSTANCE ==============="
echo
echo "List of all docker instances:"
echo
docker ps -a
echo
echo
read -p " Enter the NAME of the Hummingbot instance to start or connect to (default = \"hummingbot-instance\") >>> " INSTANCE_NAME
if [ "$INSTANCE_NAME" == "" ]
then
INSTANCE_NAME="hummingbot-instance"
fi
echo
# =============================================
# EXECUTE SCRIPT
docker start $INSTANCE_NAME && docker attach $INSTANCE_NAME