Skip to content

Commit

Permalink
Rename to shepherd_secrets to be more generic. (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
bart88 authored Jun 4, 2018
1 parent dcea83d commit 162dab0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,11 @@ public function modifySettingsFile()
" \$settings['container_yamls'][] = 'modules/contrib/redis/example.services.yml';\n" .
" }\n" .
"}\n" .
"if (getenv('UA_MW_SECRET_PATH')) {\n" .
" \$settings['ua_middleware_service'] = []; \n" .
"if (getenv('SHEPHERD_SECRET_PATH')) {\n" .
" \$settings['shepherd_secrets'] = []; \n" .
" // Glob the secret path for secrets, that match pattern \n" .
" foreach( glob( rtrim(getenv('UA_MW_SECRET_PATH'),DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR . 'UA_MW_*') as \$secret) {\n" .
" \$settings['ua_middleware_service'][pathinfo(\$secret)['filename']] = file_get_contents(\$secret);\n" .
" foreach( glob( rtrim(getenv('SHEPHERD_SECRET_PATH'),DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR . 'SHEPHERD_*') as \$secret) {\n" .
" \$settings['shepherd_secrets'][pathinfo(\$secret)['filename']] = file_get_contents(\$secret);\n" .
" }\n" .
"}\n" .
"/**\n * END SHEPHERD CONFIG\n */\n" .
Expand Down

0 comments on commit 162dab0

Please sign in to comment.