Skip to content

Commit 0a360b0

Browse files
committed
Add more user output!
1 parent 6f2611b commit 0a360b0

File tree

1 file changed

+20
-7
lines changed

1 file changed

+20
-7
lines changed

unit6_fix_sp24.sh

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ red='\033[0;31m'
33
green='\033[0;32m'
44
none='\033[0m'
55
yellow='\033[1;33m'
6+
bold='\033[1m'
67

78
##########################################
89
############### REFERENCES ###############
@@ -69,17 +70,21 @@ else
6970
fi
7071

7172
#### CATALYST LOCAL INSTALL: CATALYST
72-
CATALYST_INSTALLED=$(docker compose ls -q --filter name=catalyst-setup-sp24-main2)
73+
CATALYST_INSTALLED=$(docker compose ls -q --filter name=catalyst-setup-sp24-main)
7374
if [ -n "$CATALYST_INSTALLED" ]; then
74-
echo -e "${green}[CATALYST SETUP]${none} Catalyst already running"
75+
echo -e "${green}[CATALYST SETUP]${none} Catalyst is already running. Try connecting at https://catalyst.localhost."
76+
echo -e "\nTo ${red}stop${none} it, use the following command:"
77+
echo -e "\n ${bold}docker compose -f /opt/catalyst/catalyst-setup-sp24-main/docker-compose.yml down${none}\n"
78+
echo -e "To ${yellow}restart${none} it, use the following command:"
79+
echo -e "\n ${bold}docker compose -f /opt/catalyst/catalyst-setup-sp24-main/docker-compose.yml up --detach${none}\n"
7580
else
7681
# verify that this is the first install to prevent arangodb root password issues
7782
if [ -n "$(docker volume ls -q --filter name=catalyst-setup-sp24-main_arangodb)" ]; then
78-
echo "ERROR: Catalyst seems to already be installed. To start/stop it, use the following commands:"
79-
echo "TO ${green}START${none}:"
80-
echo " docker compose -f /opt/catalyst/catalyst-setup-sp24-main/docker-compose.yml up --detach"
81-
echo "TO ${red}STOP${none}:"
82-
echo " docker compose -f /opt/catalyst/catalyst-setup-sp24-main/docker-compose.yml down"
83+
echo "${yellow}[CATALYST SETUP]${none} Catalyst seems to already be installed, but is not currently running."
84+
echo -e "\nTo ${green}start${none} it, use the following command:"
85+
echo -e "\n ${bold}docker compose -f /opt/catalyst/catalyst-setup-sp24-main/docker-compose.yml up --detach${none}\n"
86+
echo -e "To ${red}stop${none} it, use the following command:"
87+
echo -e "\n ${bold}docker compose -f /opt/catalyst/catalyst-setup-sp24-main/docker-compose.yml down${none}\n"
8388
exit 1
8489
else
8590
echo -e "${yellow}[CATALYST SETUP]${none} INSTALLING CATALYST"
@@ -89,6 +94,14 @@ else
8994
fi
9095
fi
9196

97+
#### VERIFY
98+
CATALYST_INSTALLED=$(docker compose ls -q --filter name=catalyst-setup-sp24-main)
99+
if [ -n "$CATALYST_INSTALLED" ]; then
100+
echo -e "${green}[CATALYST SETUP]${none} Catalyst is running. Try connecting at https://catalyst.localhost."
101+
else
102+
echo -e "${red}[CATALYST SETUP]${none} Catalyst is not running. Please check the logs for errors."
103+
fi
104+
92105
### CLEANUP
93106
if [[ $PWD != $CATALYST_INSTALL_PATH ]]; then
94107
popd

0 commit comments

Comments
 (0)