Skip to content

Commit

Permalink
Error:Confiquration file does notexist (#452)
Browse files Browse the repository at this point in the history
* Optimize the script

* Optimize the script

* Optimize the script

* Optimize the script

* delete wechat

* delete wechat

* delete wechat

* Remove the logs directory

* fix bug: Error:Confiquration file does notexist

* debug

* debug

* debug

* debug

* debug

* debug

* debug

* debug

* debug

* debug

* debug

* debug

* debug

* debug

* fix
  • Loading branch information
skiffer-git committed Mar 7, 2024
1 parent 5f334e0 commit 433f8aa
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
11 changes: 8 additions & 3 deletions scripts/check-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,11 @@ source $SCRIPTS_ROOT/util.sh

logs_dir="$SCRIPTS_ROOT/../_output/logs"
DOCKER_LOG_FILE="$logs_dir/chat-docker.log"

if is_running_in_container; then
exec >> ${DOCKER_LOG_FILE} 2>&1
fi



DATA="$(date +%H:%M:%S)"
echo "# Start Chat check-all.sh ${DATA}, For local deployments, use ./check-all.sh --print-screen"

Expand Down Expand Up @@ -61,10 +59,17 @@ for binary_path in "${binary_full_paths[@]}"; do
# Print the binary path in red for not running services
echo -e "\033[0;31mService not running: $binary_path\033[0m"
fi
exit 1
done





if $all_services_running; then
for binary_path in "${binary_full_paths[@]}"; do
echo -e "\033[0;32mService running: $binary_path\033[0m"
done

# Print "Startup successful" in green
echo -e "\033[0;32mAll chat services startup successful\033[0m"
else
Expand Down
2 changes: 2 additions & 0 deletions scripts/docker-start-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,7 @@ logs_dir="$SCRIPTS_ROOT/../_output/logs"
DOCKER_LOG_FILE="$logs_dir/chat-docker.log"


${OPENIM_ROOT}/scripts/init-config.sh --skip

"${OPENIM_ROOT}"/scripts/start-all.sh
tail -f ${DOCKER_LOG_FILE}
2 changes: 1 addition & 1 deletion scripts/start-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ if [ -f "$CONFIG_FILE" ]; then
else
echo ""
# The file does not exist
echo "Error: Configuration file does not exist."
echo "Error: Configuration file does not exist." $CONFIG_FILE
echo "+++ You need to execute 'make init' to generate the configuration file and then modify the configuration items."
echo ""
exit 1
Expand Down
1 change: 0 additions & 1 deletion scripts/util.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ stop_services_with_name() {
check_services_with_name() {
local binary_path="$1"
pgrep -f "$binary_path" > /dev/null 2>&1

if [ $? -eq 0 ]; then
if [ -z "$SUPPRESS_OUTPUT" ]; then
echo "A process with the path $binary_path is running."
Expand Down

0 comments on commit 433f8aa

Please sign in to comment.