Skip to content

Commit

Permalink
1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTaylorLee committed Jun 10, 2024
1 parent 39f0930 commit cfbbd8f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions build/Invoke-Exporter.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Import-Module '/f2bgrafanaexporter/run/AdminToolbox.Networking/AdminToolbox.Netw
##################################################
# Setup the Exporter Database
$datasource = '/f2bgrafanaexporter/db/banlog.sqlite'
if (Test-Path $datasource -eq $false) {
if ((Test-Path $datasource) -eq $false) {
function Invoke-DBSetup {

[CmdletBinding()]
Expand Down Expand Up @@ -44,8 +44,8 @@ while ($true) {

$datasourcef2b = "/f2bgrafanaexporter/db/$env:fail2bandatabase"
$datasourcelog = '/f2bgrafanaexporter/db/banlog.sqlite'
$f2b = Invoke-SqliteQuery -ErrorAction Inquire -DataSource $DataSourcef2b -Query "Select ip FROM bips"
$log = Invoke-SqliteQuery -ErrorAction Inquire -DataSource $DataSourcelog -Query "Select ip FROM banned"
$f2b = Invoke-SqliteQuery -ErrorAction continue -DataSource $DataSourcef2b -Query "Select ip FROM bips"
$log = Invoke-SqliteQuery -ErrorAction continue -DataSource $DataSourcelog -Query "Select ip FROM banned"

switch ($log) {
$null {
Expand Down
3 changes: 2 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# Changelog
- 1.0 Initial image released
- 1.0.0 Initial image released
- 1.0.1 Fix if parameter
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.0.0
v1.0.1

0 comments on commit cfbbd8f

Please sign in to comment.