Use systemctl instead of services to install blackfire

This commit is contained in:
Jérôme Vieilledent 2021-08-10 10:33:14 +02:00 committed by Shivam Mathur
parent dbf50bf9e0
commit c2e811ce23
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A

View File

@ -16,7 +16,7 @@ add_blackfire_darwin() {
blackfire_config() { blackfire_config() {
if [[ -n $BLACKFIRE_SERVER_ID ]] && [[ -n $BLACKFIRE_SERVER_TOKEN ]]; then if [[ -n $BLACKFIRE_SERVER_ID ]] && [[ -n $BLACKFIRE_SERVER_TOKEN ]]; then
blackfire agent:config --server-id="$BLACKFIRE_SERVER_ID" --server-token="$BLACKFIRE_SERVER_TOKEN" blackfire agent:config --server-id="$BLACKFIRE_SERVER_ID" --server-token="$BLACKFIRE_SERVER_TOKEN"
[ "$os" = "Linux" ] && sudo service blackfire-agent restart [ "$os" = "Linux" ] && sudo systemctl start blackfire-agent
[ "$os" = "Darwin" ] && brew services start blackfire [ "$os" = "Darwin" ] && brew services start blackfire
fi fi
if [[ -n $BLACKFIRE_CLIENT_ID ]] && [[ -n $BLACKFIRE_CLIENT_TOKEN ]]; then if [[ -n $BLACKFIRE_CLIENT_ID ]] && [[ -n $BLACKFIRE_CLIENT_TOKEN ]]; then