Skip to content

Commit

Permalink
update monitor running log
Browse files Browse the repository at this point in the history
  • Loading branch information
sunway910 committed Jul 19, 2024
1 parent 5d545ab commit 3d42156
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion scripts/miner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@ install() {

docker compose -f $compose_yaml up -d $services

if [ "$(yq eval ".services.watchdog-web" $compose_yaml)" ]; then
if [ "$(yq eval ".services.watchdog-web.environment" $compose_yaml)" ]; then
local url=$(grep -oP "NEXT_PUBLIC_API_URL=\K.*" $compose_yaml | tr -d "'")
log_info "Storage monitor run at: $url"
fi
fi

return $?
}

Expand Down Expand Up @@ -145,7 +152,7 @@ miner_ops() {
readarray -t volumes_array <<<"$volumes" # read array split with /n
read -a names_array <<<"$miner_names" # read array split with " "
local miner_image="cesslab/cess-miner:$profile"
local -r cfg_arg="-c /opt/miner/config.yaml" # read only
local -r cfg_arg="-c /opt/miner/config.yaml" # read only

case "$1" in
increase)
Expand Down

0 comments on commit 3d42156

Please sign in to comment.