From 4af7e96d03e947e66c290ec9869cda49fef2487a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Je=CC=81ro=CC=82me=20Vieilledent?= Date: Wed, 15 Jul 2020 17:01:29 +0200 Subject: [PATCH] Remove sudo for Blackfire config when it's not needed --- src/scripts/darwin.sh | 4 ++-- src/scripts/linux.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/scripts/darwin.sh b/src/scripts/darwin.sh index 9d2e91d9..1fa6ac4a 100644 --- a/src/scripts/darwin.sh +++ b/src/scripts/darwin.sh @@ -185,11 +185,11 @@ add_blackfire() { brew tap --shallow blackfireio/homebrew-blackfire >/dev/null 2>&1 brew install blackfire-agent >/dev/null 2>&1 if [[ -n $BLACKFIRE_SERVER_ID ]] && [[ -n $BLACKFIRE_SERVER_TOKEN ]]; then - sudo blackfire-agent --register --server-id="$BLACKFIRE_SERVER_ID" --server-token="$BLACKFIRE_SERVER_TOKEN" >/dev/null 2>&1 + blackfire-agent --register --server-id="$BLACKFIRE_SERVER_ID" --server-token="$BLACKFIRE_SERVER_TOKEN" >/dev/null 2>&1 brew services start blackfire-agent >/dev/null 2>&1 fi if [[ -n $BLACKFIRE_CLIENT_ID ]] && [[ -n $BLACKFIRE_CLIENT_TOKEN ]]; then - sudo blackfire config --client-id="$BLACKFIRE_CLIENT_ID" --client-token="$BLACKFIRE_CLIENT_TOKEN" >/dev/null 2>&1 + blackfire config --client-id="$BLACKFIRE_CLIENT_ID" --client-token="$BLACKFIRE_CLIENT_TOKEN" >/dev/null 2>&1 fi add_log "$tick" "blackfire" "Added" add_log "$tick" "blackfire-agent" "Added" diff --git a/src/scripts/linux.sh b/src/scripts/linux.sh index 0af93815..fdddef16 100644 --- a/src/scripts/linux.sh +++ b/src/scripts/linux.sh @@ -300,7 +300,7 @@ add_blackfire() { sudo /etc/init.d/blackfire-agent restart >/dev/null 2>&1 fi if [[ -n $BLACKFIRE_CLIENT_ID ]] && [[ -n $BLACKFIRE_CLIENT_TOKEN ]]; then - sudo blackfire config --client-id="$BLACKFIRE_CLIENT_ID" --client-token="$BLACKFIRE_CLIENT_TOKEN" >/dev/null 2>&1 + blackfire config --client-id="$BLACKFIRE_CLIENT_ID" --client-token="$BLACKFIRE_CLIENT_TOKEN" >/dev/null 2>&1 fi add_log "$tick" "blackfire" "Added" add_log "$tick" "blackfire-agent" "Added"