This commit is contained in:
@@ -25,25 +25,24 @@ namespace AyaNova.Util
|
||||
/// Throws an exception of they are found to be identical preventing startup
|
||||
/// The reason for this is to prevent a future erase database operation (which erases all attachment files)
|
||||
/// from erasing backups which might prevent recovery in case someone accidentally erases their database
|
||||
/// </summary>
|
||||
/// <param name="contentRootPath"></param>
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
internal static void EnsureUserAndUtilityFoldersExistAndAreNotIdentical(string contentRootPath)
|
||||
internal static void EnsureUserAndUtilityFoldersExistAndAreNotIdentical()
|
||||
{
|
||||
|
||||
//UserFiles
|
||||
if (string.IsNullOrWhiteSpace(ServerBootConfig.AYANOVA_FOLDER_USER_FILES))
|
||||
ServerBootConfig.AYANOVA_FOLDER_USER_FILES = Path.Combine(contentRootPath, "userfiles");
|
||||
// //UserFiles
|
||||
// if (string.IsNullOrWhiteSpace(ServerBootConfig.AYANOVA_FOLDER_USER_FILES))
|
||||
// ServerBootConfig.AYANOVA_FOLDER_USER_FILES = Path.Combine(contentRootPath, "userfiles");
|
||||
|
||||
|
||||
//BackupFiles
|
||||
if (ServerBootConfig.AYANOVA_FOLDER_BACKUP_FILES == null)
|
||||
ServerBootConfig.AYANOVA_FOLDER_BACKUP_FILES = Path.Combine(contentRootPath, "backupfiles");
|
||||
// //BackupFiles
|
||||
// if (ServerBootConfig.AYANOVA_FOLDER_BACKUP_FILES == null)
|
||||
// ServerBootConfig.AYANOVA_FOLDER_BACKUP_FILES = Path.Combine(contentRootPath, "backupfiles");
|
||||
|
||||
|
||||
//Temporary system files (reports etc)
|
||||
if (ServerBootConfig.AYANOVA_FOLDER_TEMPORARY_SERVER_FILES == null)
|
||||
ServerBootConfig.AYANOVA_FOLDER_TEMPORARY_SERVER_FILES = Path.Combine(contentRootPath, "tempfiles");
|
||||
// //Temporary system files (reports etc)
|
||||
// if (ServerBootConfig.AYANOVA_FOLDER_TEMPORARY_SERVER_FILES == null)
|
||||
// ServerBootConfig.AYANOVA_FOLDER_TEMPORARY_SERVER_FILES = Path.Combine(contentRootPath, "tempfiles");
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user