mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2024-11-22 07:43:47 +01:00
Fixed VAULT_CERT_FILE detection
This commit is contained in:
parent
25d7215712
commit
cd52a48021
@ -33,7 +33,7 @@ $DB['VAULT_DB_PATH'] = getenv('ZBX_VAULTDBPATH');
|
||||
$DB['VAULT_TOKEN'] = getenv('VAULT_TOKEN');
|
||||
|
||||
if (file_exists('/etc/zabbix/web/certs/vault.crt')) {
|
||||
$DB['VAULT_CERT_FILE'] = file_exists('/etc/zabbix/web/certs/vault.crt');
|
||||
$DB['VAULT_CERT_FILE'] = '/etc/zabbix/web/certs/vault.crt';
|
||||
}
|
||||
elseif (file_exists(getenv('ZBX_VAULTCERTFILE'))) {
|
||||
$DB['VAULT_CERT_FILE'] = getenv('ZBX_VAULTCERTFILE');
|
||||
|
@ -33,7 +33,7 @@ $DB['VAULT_DB_PATH'] = getenv('ZBX_VAULTDBPATH');
|
||||
$DB['VAULT_TOKEN'] = getenv('VAULT_TOKEN');
|
||||
|
||||
if (file_exists('/etc/zabbix/web/certs/vault.crt')) {
|
||||
$DB['VAULT_CERT_FILE'] = file_exists('/etc/zabbix/web/certs/vault.crt');
|
||||
$DB['VAULT_CERT_FILE'] = '/etc/zabbix/web/certs/vault.crt';
|
||||
}
|
||||
elseif (file_exists(getenv('ZBX_VAULTCERTFILE'))) {
|
||||
$DB['VAULT_CERT_FILE'] = getenv('ZBX_VAULTCERTFILE');
|
||||
|
@ -33,7 +33,7 @@ $DB['VAULT_DB_PATH'] = getenv('ZBX_VAULTDBPATH');
|
||||
$DB['VAULT_TOKEN'] = getenv('VAULT_TOKEN');
|
||||
|
||||
if (file_exists('/etc/zabbix/web/certs/vault.crt')) {
|
||||
$DB['VAULT_CERT_FILE'] = file_exists('/etc/zabbix/web/certs/vault.crt');
|
||||
$DB['VAULT_CERT_FILE'] = '/etc/zabbix/web/certs/vault.crt';
|
||||
}
|
||||
elseif (file_exists(getenv('ZBX_VAULTCERTFILE'))) {
|
||||
$DB['VAULT_CERT_FILE'] = getenv('ZBX_VAULTCERTFILE');
|
||||
|
@ -33,7 +33,7 @@ $DB['VAULT_DB_PATH'] = getenv('ZBX_VAULTDBPATH');
|
||||
$DB['VAULT_TOKEN'] = getenv('VAULT_TOKEN');
|
||||
|
||||
if (file_exists('/etc/zabbix/web/certs/vault.crt')) {
|
||||
$DB['VAULT_CERT_FILE'] = file_exists('/etc/zabbix/web/certs/vault.crt');
|
||||
$DB['VAULT_CERT_FILE'] = '/etc/zabbix/web/certs/vault.crt';
|
||||
}
|
||||
elseif (file_exists(getenv('ZBX_VAULTCERTFILE'))) {
|
||||
$DB['VAULT_CERT_FILE'] = getenv('ZBX_VAULTCERTFILE');
|
||||
|
@ -33,7 +33,7 @@ $DB['VAULT_DB_PATH'] = getenv('ZBX_VAULTDBPATH');
|
||||
$DB['VAULT_TOKEN'] = getenv('VAULT_TOKEN');
|
||||
|
||||
if (file_exists('/etc/zabbix/web/certs/vault.crt')) {
|
||||
$DB['VAULT_CERT_FILE'] = file_exists('/etc/zabbix/web/certs/vault.crt');
|
||||
$DB['VAULT_CERT_FILE'] = '/etc/zabbix/web/certs/vault.crt';
|
||||
}
|
||||
elseif (file_exists(getenv('ZBX_VAULTCERTFILE'))) {
|
||||
$DB['VAULT_CERT_FILE'] = getenv('ZBX_VAULTCERTFILE');
|
||||
|
@ -33,7 +33,7 @@ $DB['VAULT_DB_PATH'] = getenv('ZBX_VAULTDBPATH');
|
||||
$DB['VAULT_TOKEN'] = getenv('VAULT_TOKEN');
|
||||
|
||||
if (file_exists('/etc/zabbix/web/certs/vault.crt')) {
|
||||
$DB['VAULT_CERT_FILE'] = file_exists('/etc/zabbix/web/certs/vault.crt');
|
||||
$DB['VAULT_CERT_FILE'] = '/etc/zabbix/web/certs/vault.crt';
|
||||
}
|
||||
elseif (file_exists(getenv('ZBX_VAULTCERTFILE'))) {
|
||||
$DB['VAULT_CERT_FILE'] = getenv('ZBX_VAULTCERTFILE');
|
||||
|
@ -33,7 +33,7 @@ $DB['VAULT_DB_PATH'] = getenv('ZBX_VAULTDBPATH');
|
||||
$DB['VAULT_TOKEN'] = getenv('VAULT_TOKEN');
|
||||
|
||||
if (file_exists('/etc/zabbix/web/certs/vault.crt')) {
|
||||
$DB['VAULT_CERT_FILE'] = file_exists('/etc/zabbix/web/certs/vault.crt');
|
||||
$DB['VAULT_CERT_FILE'] = '/etc/zabbix/web/certs/vault.crt';
|
||||
}
|
||||
elseif (file_exists(getenv('ZBX_VAULTCERTFILE'))) {
|
||||
$DB['VAULT_CERT_FILE'] = getenv('ZBX_VAULTCERTFILE');
|
||||
|
@ -33,7 +33,7 @@ $DB['VAULT_DB_PATH'] = getenv('ZBX_VAULTDBPATH');
|
||||
$DB['VAULT_TOKEN'] = getenv('VAULT_TOKEN');
|
||||
|
||||
if (file_exists('/etc/zabbix/web/certs/vault.crt')) {
|
||||
$DB['VAULT_CERT_FILE'] = file_exists('/etc/zabbix/web/certs/vault.crt');
|
||||
$DB['VAULT_CERT_FILE'] = '/etc/zabbix/web/certs/vault.crt';
|
||||
}
|
||||
elseif (file_exists(getenv('ZBX_VAULTCERTFILE'))) {
|
||||
$DB['VAULT_CERT_FILE'] = getenv('ZBX_VAULTCERTFILE');
|
||||
|
@ -33,7 +33,7 @@ $DB['VAULT_DB_PATH'] = getenv('ZBX_VAULTDBPATH');
|
||||
$DB['VAULT_TOKEN'] = getenv('VAULT_TOKEN');
|
||||
|
||||
if (file_exists('/etc/zabbix/web/certs/vault.crt')) {
|
||||
$DB['VAULT_CERT_FILE'] = file_exists('/etc/zabbix/web/certs/vault.crt');
|
||||
$DB['VAULT_CERT_FILE'] = '/etc/zabbix/web/certs/vault.crt';
|
||||
}
|
||||
elseif (file_exists(getenv('ZBX_VAULTCERTFILE'))) {
|
||||
$DB['VAULT_CERT_FILE'] = getenv('ZBX_VAULTCERTFILE');
|
||||
|
@ -33,7 +33,7 @@ $DB['VAULT_DB_PATH'] = getenv('ZBX_VAULTDBPATH');
|
||||
$DB['VAULT_TOKEN'] = getenv('VAULT_TOKEN');
|
||||
|
||||
if (file_exists('/etc/zabbix/web/certs/vault.crt')) {
|
||||
$DB['VAULT_CERT_FILE'] = file_exists('/etc/zabbix/web/certs/vault.crt');
|
||||
$DB['VAULT_CERT_FILE'] = '/etc/zabbix/web/certs/vault.crt';
|
||||
}
|
||||
elseif (file_exists(getenv('ZBX_VAULTCERTFILE'))) {
|
||||
$DB['VAULT_CERT_FILE'] = getenv('ZBX_VAULTCERTFILE');
|
||||
|
@ -33,7 +33,7 @@ $DB['VAULT_DB_PATH'] = getenv('ZBX_VAULTDBPATH');
|
||||
$DB['VAULT_TOKEN'] = getenv('VAULT_TOKEN');
|
||||
|
||||
if (file_exists('/etc/zabbix/web/certs/vault.crt')) {
|
||||
$DB['VAULT_CERT_FILE'] = file_exists('/etc/zabbix/web/certs/vault.crt');
|
||||
$DB['VAULT_CERT_FILE'] = '/etc/zabbix/web/certs/vault.crt';
|
||||
}
|
||||
elseif (file_exists(getenv('ZBX_VAULTCERTFILE'))) {
|
||||
$DB['VAULT_CERT_FILE'] = getenv('ZBX_VAULTCERTFILE');
|
||||
|
@ -33,7 +33,7 @@ $DB['VAULT_DB_PATH'] = getenv('ZBX_VAULTDBPATH');
|
||||
$DB['VAULT_TOKEN'] = getenv('VAULT_TOKEN');
|
||||
|
||||
if (file_exists('/etc/zabbix/web/certs/vault.crt')) {
|
||||
$DB['VAULT_CERT_FILE'] = file_exists('/etc/zabbix/web/certs/vault.crt');
|
||||
$DB['VAULT_CERT_FILE'] = '/etc/zabbix/web/certs/vault.crt';
|
||||
}
|
||||
elseif (file_exists(getenv('ZBX_VAULTCERTFILE'))) {
|
||||
$DB['VAULT_CERT_FILE'] = getenv('ZBX_VAULTCERTFILE');
|
||||
|
@ -33,7 +33,7 @@ $DB['VAULT_DB_PATH'] = getenv('ZBX_VAULTDBPATH');
|
||||
$DB['VAULT_TOKEN'] = getenv('VAULT_TOKEN');
|
||||
|
||||
if (file_exists('/etc/zabbix/web/certs/vault.crt')) {
|
||||
$DB['VAULT_CERT_FILE'] = file_exists('/etc/zabbix/web/certs/vault.crt');
|
||||
$DB['VAULT_CERT_FILE'] = '/etc/zabbix/web/certs/vault.crt';
|
||||
}
|
||||
elseif (file_exists(getenv('ZBX_VAULTCERTFILE'))) {
|
||||
$DB['VAULT_CERT_FILE'] = getenv('ZBX_VAULTCERTFILE');
|
||||
|
@ -33,7 +33,7 @@ $DB['VAULT_DB_PATH'] = getenv('ZBX_VAULTDBPATH');
|
||||
$DB['VAULT_TOKEN'] = getenv('VAULT_TOKEN');
|
||||
|
||||
if (file_exists('/etc/zabbix/web/certs/vault.crt')) {
|
||||
$DB['VAULT_CERT_FILE'] = file_exists('/etc/zabbix/web/certs/vault.crt');
|
||||
$DB['VAULT_CERT_FILE'] = '/etc/zabbix/web/certs/vault.crt';
|
||||
}
|
||||
elseif (file_exists(getenv('ZBX_VAULTCERTFILE'))) {
|
||||
$DB['VAULT_CERT_FILE'] = getenv('ZBX_VAULTCERTFILE');
|
||||
|
@ -33,7 +33,7 @@ $DB['VAULT_DB_PATH'] = getenv('ZBX_VAULTDBPATH');
|
||||
$DB['VAULT_TOKEN'] = getenv('VAULT_TOKEN');
|
||||
|
||||
if (file_exists('/etc/zabbix/web/certs/vault.crt')) {
|
||||
$DB['VAULT_CERT_FILE'] = file_exists('/etc/zabbix/web/certs/vault.crt');
|
||||
$DB['VAULT_CERT_FILE'] = '/etc/zabbix/web/certs/vault.crt';
|
||||
}
|
||||
elseif (file_exists(getenv('ZBX_VAULTCERTFILE'))) {
|
||||
$DB['VAULT_CERT_FILE'] = getenv('ZBX_VAULTCERTFILE');
|
||||
|
@ -33,7 +33,7 @@ $DB['VAULT_DB_PATH'] = getenv('ZBX_VAULTDBPATH');
|
||||
$DB['VAULT_TOKEN'] = getenv('VAULT_TOKEN');
|
||||
|
||||
if (file_exists('/etc/zabbix/web/certs/vault.crt')) {
|
||||
$DB['VAULT_CERT_FILE'] = file_exists('/etc/zabbix/web/certs/vault.crt');
|
||||
$DB['VAULT_CERT_FILE'] = '/etc/zabbix/web/certs/vault.crt';
|
||||
}
|
||||
elseif (file_exists(getenv('ZBX_VAULTCERTFILE'))) {
|
||||
$DB['VAULT_CERT_FILE'] = getenv('ZBX_VAULTCERTFILE');
|
||||
|
@ -33,7 +33,7 @@ $DB['VAULT_DB_PATH'] = getenv('ZBX_VAULTDBPATH');
|
||||
$DB['VAULT_TOKEN'] = getenv('VAULT_TOKEN');
|
||||
|
||||
if (file_exists('/etc/zabbix/web/certs/vault.crt')) {
|
||||
$DB['VAULT_CERT_FILE'] = file_exists('/etc/zabbix/web/certs/vault.crt');
|
||||
$DB['VAULT_CERT_FILE'] = '/etc/zabbix/web/certs/vault.crt';
|
||||
}
|
||||
elseif (file_exists(getenv('ZBX_VAULTCERTFILE'))) {
|
||||
$DB['VAULT_CERT_FILE'] = getenv('ZBX_VAULTCERTFILE');
|
||||
|
@ -33,7 +33,7 @@ $DB['VAULT_DB_PATH'] = getenv('ZBX_VAULTDBPATH');
|
||||
$DB['VAULT_TOKEN'] = getenv('VAULT_TOKEN');
|
||||
|
||||
if (file_exists('/etc/zabbix/web/certs/vault.crt')) {
|
||||
$DB['VAULT_CERT_FILE'] = file_exists('/etc/zabbix/web/certs/vault.crt');
|
||||
$DB['VAULT_CERT_FILE'] = '/etc/zabbix/web/certs/vault.crt';
|
||||
}
|
||||
elseif (file_exists(getenv('ZBX_VAULTCERTFILE'))) {
|
||||
$DB['VAULT_CERT_FILE'] = getenv('ZBX_VAULTCERTFILE');
|
||||
|
Loading…
Reference in New Issue
Block a user