Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PD-1755 / 25.04 / Pd 1755 move cleanup script and run #3524

Merged
merged 4 commits into from
Feb 21, 2025
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions cleanup.ps1 → scripts/cleanup.ps1
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# Define relative paths
$targetFolders = @(".\static\includes", ".\static\images")
$contentDir = ".\content"
$includesDir = ".\static\includes"
$layoutsDir = ".\layouts"
$dataPropertiesDir = ".\data\properties"
$configFile = ".\config.toml"
$docRoot = "$PSScriptRoot\.."
$targetFolders = @("$docRoot\static\includes", "$docRoot\static\images")
$contentDir = "$docRoot\content"
$includesDir = "$docRoot\static\includes"
$layoutsDir = "$docRoot\layouts"
$dataPropertiesDir = "$docRoot\data\properties"
$configFile = "$docRoot\config.toml"

# Initialize counters
$totalFiles = 0
Expand Down Expand Up @@ -53,7 +54,7 @@ foreach ($targetFolder in $targetFolders) {
}

# Prepare log content
$logFilePath = ".\cleanup_log.txt"
$logFilePath = "$PSScriptRoot\cleanup_log.txt"
$logContent = @()
$logContent += "Process time: $dateTime"
$logContent += "Initiated by: $userName"
Expand Down
21 changes: 21 additions & 0 deletions cleanup_log.txt → scripts/cleanup_log.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
Process time: 2025-02-14 16:48:52
Initiated by: Dan Pizappi

1089 files reviewed.
13 files deleted.
The following files were deleted:
C:\Users\iXUser\Documents\GitHub\documentation\static\includes\MakeDirectory.md
C:\Users\iXUser\Documents\GitHub\documentation\static\includes\apps\InstallWizardDefaultPorts.md
C:\Users\iXUser\Documents\GitHub\documentation\static\images\CORE\Accounts\AddUserNamedCORE.png
C:\Users\iXUser\Documents\GitHub\documentation\static\images\CORE\DirectoryServices\DirectoryServicesNIS.png
C:\Users\iXUser\Documents\GitHub\documentation\static\images\CORE\Services\NFSServicesScreen.png
C:\Users\iXUser\Documents\GitHub\documentation\static\images\CORE\Sharing\SharingSMBAdvancedOptions.png
C:\Users\iXUser\Documents\GitHub\documentation\static\images\CORE\Storage\StorageAllPoolsDataset.png
C:\Users\iXUser\Documents\GitHub\documentation\static\images\CORE\Storage\StoragePoolsAddDataset2.png
C:\Users\iXUser\Documents\GitHub\documentation\static\images\CORE\System\CloudCredentialsAddCredentials.png
C:\Users\iXUser\Documents\GitHub\documentation\static\images\CORE\System\SystemCloudCredentialsOAuthLogin.png
C:\Users\iXUser\Documents\GitHub\documentation\static\images\CORE\System\SystemNTPServersAdd.png
C:\Users\iXUser\Documents\GitHub\documentation\static\images\CORE\Tasks\RsyncConfigure.png
C:\Users\iXUser\Documents\GitHub\documentation\static\images\CORE\Tasks\TasksCloudSyncAdd.png

----------------------------------------
Process time: 2025-02-05 12:20:27
Initiated by: Dan Pizappi

Expand Down
Binary file removed static/images/CORE/Accounts/AddUserNamedCORE.png
Binary file not shown.
Binary file not shown.
Binary file removed static/images/CORE/Services/NFSServicesScreen.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed static/images/CORE/System/SystemNTPServersAdd.png
Binary file not shown.
Binary file removed static/images/CORE/Tasks/RsyncConfigure.png
Binary file not shown.
Binary file removed static/images/CORE/Tasks/TasksCloudSyncAdd.png
Binary file not shown.
3 changes: 0 additions & 3 deletions static/includes/MakeDirectory.md

This file was deleted.

5 changes: 0 additions & 5 deletions static/includes/apps/InstallWizardDefaultPorts.md

This file was deleted.