Dev #7

Merged
foefl merged 74 commits from dev into main 2026-07-31 14:19:01 +00:00
2 changed files with 7 additions and 12 deletions
Showing only changes of commit f8b1c65221 - Show all commits
+2 -2
View File
@@ -1,6 +1,6 @@
DOPT_STOP_FOLDER_NAME=python DOPT_STOP_FOLDER_NAME=python
DOPT_DB_CRM=data/wce_crm.db DOPT_DB_CRM=data/db/wce_crm.db
DOPT_DB_MAIN=data/wce_grunderfassung.db DOPT_DB_MAIN=data/db/wce_grunderfassung.db
DOPT_PATH_LOGGING=data/logs DOPT_PATH_LOGGING=data/logs
DOPT_PATH_FILE_STORAGE=data/files DOPT_PATH_FILE_STORAGE=data/files
DOPT_ALEMBIC_BASE=python/alembic DOPT_ALEMBIC_BASE=python/alembic
+5 -10
View File
@@ -45,15 +45,10 @@ Write-Output "Deleted outstanding artifacts successfully"
Write-Output "Create data folder..." Write-Output "Create data folder..."
$pattern = "dopt_nafka_wce-crm_v*" $pattern = "dopt_nafka_wce-crm_v*"
$data_folder = Join-Path -Path $ENV_PATH -ChildPath 'data'
if (-not (Test-Path -Path $data_folder)){ create_folder -base_path $ENV_PATH -folder_name 'data' -recreate
Write-Output "[PWSH] Data path not existing. Create..." create_folder -base_path $ENV_PATH -folder_name 'data/db'
New-Item -Path $data_folder -ItemType Directory create_folder -base_path $ENV_PATH -folder_name 'data/files'
}
else {
Write-Output "Data path already exists."
}
Write-Output "Building package..." Write-Output "Building package..."
@@ -93,10 +88,10 @@ if ($? -eq $false){
} }
Write-Output "Successfully installed package" Write-Output "Successfully installed package"
# copy database file # copy database files
Write-Output "Copying database files..." Write-Output "Copying database files..."
$copy_file = Join-Path -Path $SRC_PATH -ChildPath 'data/db/wce_grunderfassung.db' $copy_file = Join-Path -Path $SRC_PATH -ChildPath 'data/db/wce_grunderfassung.db'
$dest_file = Join-Path -Path $ENV_PATH -ChildPath 'data' $dest_file = Join-Path -Path $ENV_PATH -ChildPath 'data/db'
Copy-Item -Path $copy_file -Destination $dest_file -Force Copy-Item -Path $copy_file -Destination $dest_file -Force
if ($? -eq $false){ if ($? -eq $false){
Write-Output "[PWSH] Exiting script because there were errors while copying database 'Grunderfassung'" Write-Output "[PWSH] Exiting script because there were errors while copying database 'Grunderfassung'"