From 084e4a23d4a19560568d8ba430401bcfc474bd01 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Fri, 10 Jun 2022 00:04:01 +0000 Subject: [PATCH] --- util/OpsDiagnostics.cs | 16 +++--- util/RfVersion.cs | 2 +- wwwroot/default.htm | 112 ++++++++++++++++++++--------------------- wwwroot/js/app.api.js | 2 +- 4 files changed, 67 insertions(+), 65 deletions(-) diff --git a/util/OpsDiagnostics.cs b/util/OpsDiagnostics.cs index 8170a2b..8b20dd3 100644 --- a/util/OpsDiagnostics.cs +++ b/util/OpsDiagnostics.cs @@ -99,8 +99,8 @@ namespace rockfishCore.Util public static bool VerifyBackups() { - string[] CriticalDailyBackupFilePrefixes = { "ayanova21-pecklist-db-backup-", "ayanova21-rockfish-db-backup-", "mail21-svn-backup-" }; - string[] Level2ManualBackupFilePrefixes = { "forum21-backup-", "ayanova21-website-backup-" }; + string[] CriticalDailyBackupFilePrefixes = { "ayanova21-pecklist-db-backup-", "ayanova21-rockfish-db-backup-", "mail21-svn-backup-", "forum21-backup-" }; + string[] Level2ManualBackupFilePrefixes = { "ayanova21-website-backup-" }; var SpacesFileNames = GetFileListFromSpacesBackupStorage(); //Daily critical files @@ -119,17 +119,19 @@ namespace rockfishCore.Util } } - //Website and Forum sb at least three of each, so just ensure there are three matches - //we dont' care about date for these ones, just presence + //Manual backups are random in quantity so just confirm there is at least one + //we dont' care about date for these ones, just presence of at least one int FoundLevel2Matches = 0; foreach (string ExpectedFileName in Level2ManualBackupFilePrefixes) foreach (string FileName in SpacesFileNames) if (FileName.StartsWith(ExpectedFileName)) + { FoundLevel2Matches++; + break; + } - //should be one each of the critical and 3 each of the level2 - //todo: as long as there is one of each that's fine - return (FoundCriticalMatches == CriticalDailyBackupFilePrefixes.Length && FoundLevel2Matches == (Level2ManualBackupFilePrefixes.Length * 3)); + //At least one of each separate manual backup file + return (FoundCriticalMatches == CriticalDailyBackupFilePrefixes.Length && FoundLevel2Matches == Level2ManualBackupFilePrefixes.Length); } diff --git a/util/RfVersion.cs b/util/RfVersion.cs index 7da0afa..e00155f 100644 --- a/util/RfVersion.cs +++ b/util/RfVersion.cs @@ -2,7 +2,7 @@ namespace rockfishCore.Util { public static class RfVersion { - public const string NumberOnly="6.14"; + public const string NumberOnly="6.15"; public const string Full = "Rockfish server " + NumberOnly; } } \ No newline at end of file diff --git a/wwwroot/default.htm b/wwwroot/default.htm index 74f2061..ec53f6b 100644 --- a/wwwroot/default.htm +++ b/wwwroot/default.htm @@ -11,73 +11,73 @@ Rockfish loading.... - - - - - + + + + + - - - - + + + + - - - - - - - - + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + \ No newline at end of file diff --git a/wwwroot/js/app.api.js b/wwwroot/js/app.api.js index 6fd7da5..3dd6c8f 100644 --- a/wwwroot/js/app.api.js +++ b/wwwroot/js/app.api.js @@ -29,7 +29,7 @@ app.api = (function () { generateFromRequest, licenseEmailResponse; - RockFishVersion = "6.13"; + RockFishVersion = "6.15"; ////////////////////////////////////////////////////////////////////////////////////// // NOT AUTHORIZED ERROR HANDLER