File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -13,8 +13,15 @@ add_blackfire_darwin() {
1313blackfire_config () {
1414 if [[ -n $BLACKFIRE_SERVER_ID ]] && [[ -n $BLACKFIRE_SERVER_TOKEN ]]; then
1515 blackfire agent:config --server-id=" $BLACKFIRE_SERVER_ID " --server-token=" $BLACKFIRE_SERVER_TOKEN "
16- [ " $os " = " Linux" ] && sudo systemctl start blackfire-agent
17- [ " $os " = " Darwin" ] && brew services start blackfire
16+ if [ " $os " = " Linux" ]; then
17+ if [ -d /run/systemd/system ]; then
18+ sudo systemctl start blackfire-agent
19+ else
20+ sudo service blackfire-agent start
21+ fi
22+ elif [ " $os " = " Darwin" ]; then
23+ brew services start blackfire
24+ fi
1825 fi
1926 if [[ -n $BLACKFIRE_CLIENT_ID ]] && [[ -n $BLACKFIRE_CLIENT_TOKEN ]]; then
2027 blackfire client:config --client-id=" $BLACKFIRE_CLIENT_ID " --client-token=" $BLACKFIRE_CLIENT_TOKEN "
You can’t perform that action at this time.
0 commit comments