From 75024e22e4c0ac0725aaed91f0c1811fda3ff4b9 Mon Sep 17 00:00:00 2001 From: Christian A. Weber Date: Thu, 30 Jul 2026 17:30:12 +0200 Subject: store credentials in service's var/credentials, not .env --- it.class | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'it.class') diff --git a/it.class b/it.class index 2141ad0..1785ea3 100644 --- a/it.class +++ b/it.class @@ -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")) -- cgit v1.2.3