File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55set -o pipefail
66
77
8+ # ##
9+ # ## Pre-flight check
10+ # ##
11+ if ! command -v blackfire > /dev/null 2>&1 ; then
12+ echo " No blackfire cli found, skipping configuration."
13+ exit 0
14+ fi
15+
16+
817# ##
918# ## Blackfire Client (cli) Variables
1019# ##
1120# Blackfire Client ID via env: BLACKFIRE_SERVER_ID
1221BF_CLIENT_ID=
1322# Blackfire Client Token via env: BLACKFIRE_SERVER_TOKEN
1423BF_CLIENT_TOKEN=
15-
24+ # Blackfire client configuration file
25+ BF_CLIENT_INI=" /home/devilbox/.blackfire.ini"
1626
1727# ##
1828# ## Get Client ID and Client Token
7686 echo " ; desc : Sets the Blackfire API connection timeout" ;
7787 echo " ; default: 15s" ;
7888 echo " timeout=15s" ;
79- } > /home/devilbox/.blackfire.ini
89+ } > " ${BF_CLIENT_INI} "
8090
81- chown devilbox:devilbox /home/devilbox/.blackfire.ini
82- chmod 0600 /home/devilbox/.blackfire.ini
91+ chown devilbox:devilbox " ${BF_CLIENT_INI} "
92+ chmod 0600 " ${BF_CLIENT_INI} "
You can’t perform that action at this time.
0 commit comments