generated from dopt-python/py311
Dev #7
+2
-2
@@ -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
@@ -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'"
|
||||||
|
|||||||
Reference in New Issue
Block a user