Skip to content

Commit

Permalink
fix: sed for macOS in Obol config
Browse files Browse the repository at this point in the history
  • Loading branch information
vgorkavenko committed Aug 14, 2024
1 parent 0f885ef commit 71aa8b2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ethd
Original file line number Diff line number Diff line change
Expand Up @@ -3524,7 +3524,8 @@ config() {
__obol_prom_remote_token=$(whiptail --title "Obol prometheus" --inputbox "Put Obol Prometheus remote write token \
(right-click to paste)" 10 60 3>&1 1>&2 2>&3)
cat ./prometheus/obol-prom.yml > ./prometheus/custom-prom.yml
sed -i'' "s| credentials: OBOL_PROM_REMOTE_WRITE_TOKEN| credentials: ${__obol_prom_remote_token}|" ./prometheus/custom-prom.yml
sed -i'.original' "s| credentials: OBOL_PROM_REMOTE_WRITE_TOKEN| credentials: ${__obol_prom_remote_token}|" ./prometheus/custom-prom.yml
rm -f ./prometheus/custom-prom.yml.original
fi

COMPOSE_FILE="${CONSENSUS_CLIENT}"
Expand Down

0 comments on commit 71aa8b2

Please sign in to comment.