diff options
| author | Christian A. Weber | 2026-07-30 17:30:12 +0200 |
|---|---|---|
| committer | Christian A. Weber | 2026-07-30 17:30:12 +0200 |
| commit | 75024e22e4c0ac0725aaed91f0c1811fda3ff4b9 (patch) | |
| tree | 3ff596c3b14a42ab4d4085a14af4f39ea566b72f | |
| parent | 95e4f8ff016be0ade1f619248a51656b84e7912b (diff) | |
| download | itools-master.tar.gz itools-master.tar.bz2 itools-master.zip | |
| -rw-r--r-- | it.class | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -43,8 +43,8 @@ static function createconfig($p = array()) 'service' => $parts[2], ); - # We store credentials in a service's . "/.env" so they don't need to be in git - foreach (it::match('(\w+)\s*=\s*["\']?(.*?)["\']?$', @it::file_get_contents($GLOBALS['ULTRAHOME'] . "/.env"), ['multiline' => true, 'all' => true]) as $env) + # Add credentials from service's "var/credentials" as static members so they don't need to be in git + foreach (it::match('(\w+)\s*=\s*["\']?(.*?)["\']?$', @it::file_get_contents($GLOBALS['ULTRAHOME'] . "/var/credentials"), ['multiline' => true, 'all' => true]) as $env) $p += [$env[0] => $env[1]]; if (class_exists($p['service'] . "_tools")) |