1
0
Fork 0
mirror of synced 2024-06-23 08:40:58 +12:00

Merge pull request #243 from dyyim741/fix-shellscript

Replaced $(...) instead of legacy backticked `...`
This commit is contained in:
Eldad A. Fux 2019-11-02 15:28:58 +02:00 committed by GitHub
commit 5dda7783b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,7 +20,7 @@ function setEnvironmentVariable() {
}
# Grep for variables that look like MySQL (APP_)
for _curVar in `env | grep _APP_ | awk -F = '{print $1}'`;do
for _curVar in $(env | grep _APP_ | awk -F = '{print $1}');do
# awk has split them by the equals sign
# Pass the name and value to our function
setEnvironmentVariable ${_curVar} ${!_curVar}
@ -30,4 +30,4 @@ echo newrelic.license = \"$_APP_NEWRELIC_KEY\" > /etc/php/7.3/fpm/conf.d/newreli
echo newrelic.license = \"$_APP_NEWRELIC_KEY\" > /etc/php/7.3/cli/conf.d/newrelic.ini
# Start supervisord and services
/usr/bin/supervisord -n -c /etc/supervisord.conf
/usr/bin/supervisord -n -c /etc/supervisord.conf