Skip to content

Commit a43d3bf

Browse files
Merge pull request #293 from P6g9YHK6/main
updates
2 parents 4211d4a + f083141 commit a43d3bf

8 files changed

+784
-348
lines changed

scripts_staging/Backend/Mail notification password expiry.ps1

Lines changed: 472 additions & 145 deletions
Large diffs are not rendered by default.

scripts_staging/Build/Change default chocolatey repo to internal.ps1

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
.CHANGELOG
2020
SAN 11.12.24 Moved new info to env
2121
SAN 03.05.25 Added a flag to keep or not the default repo
22-
22+
SAN 18.06.25 Added outputs
23+
2324
#>
2425

2526
$newUrl = $env:NEW_URL
@@ -34,13 +35,20 @@ $defaultName = "chocolatey"
3435
$keepDefaultRepo = ($env:keepDefaultRepo -ne '0')
3536

3637
# Always remove both sources to ensure clean state and updated priority
38+
Write-Output "Removing Chocolatey source: $newName (if exists)"
3739
choco source remove -n $newName -y
40+
41+
Write-Output "Removing Chocolatey source: $defaultName (if exists)"
3842
choco source remove -n $defaultName -y
3943

4044
# Add the new internal Chocolatey repository
45+
Write-Output "Adding new Chocolatey source: $newName with URL $newUrl and priority $newPriority"
4146
choco source add -n $newName -s $newUrl --priority $newPriority
4247

4348
# Conditionally re-add the default repository
4449
if ($keepDefaultRepo) {
50+
Write-Output "Re-adding default Chocolatey source: $defaultName with priority $defaultPriority"
4551
choco source add -n $defaultName -s $defaultUrl --priority $defaultPriority
52+
} else {
53+
Write-Output "Skipping re-adding default Chocolatey source"
4654
}

0 commit comments

Comments
 (0)