Anpassung des Install-Scripts + Readme hinzugefügt
This commit is contained in:
1 parent
ddbc3fa48e
commit
ac62c5476d
2 files changed
+16
-4
No files matched your search
@@ -0,0 +1,12 @@
|
||||
# Scoop Medelexis AG - Intern
|
||||
|
||||
Damit die PowerShell-Scripte ausgeführt werden können, muss im Terminal-Fenster zuerst `Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass` eingegeben und ausgeführt werden.
|
||||
|
||||
**Scripts:**
|
||||
|
||||
* Install -> installiert Scoop und fügt die Buckets extras und medelexis hinzu
|
||||
* update-bucket -> Migriert bestehende Buckets und Pakete auf medelexis *(kann mehrfach ausgeführt werden)
|
||||
(ohne -Apply wird nur ein Probelauf durchgeführt. Wenn das Update angewendet werden soll, muss "update-bucket.ps1 -Apply" verwendet werden.)*
|
||||
* setup-auto-update -> Richtet eine tägliche Scoop-Update-Aufgabe ein, repariert oder entfernt sie.
|
||||
|
||||
Andere Scripts sind System-Scripts und nicht für manuelle Ausführung gedacht.
|
||||
+4
-4
@@ -29,12 +29,12 @@ else {
|
||||
}
|
||||
|
||||
# 3. BUCKET CHECKS
|
||||
if ($bucketList -match "elexis") {
|
||||
Write-Host "elexis Bucket ist bereits vorhanden." -ForegroundColor White
|
||||
if ($bucketList -match '(?m)^\s*medelexis\s') {
|
||||
Write-Host "Medelexis-Bucket ist bereits vorhanden." -ForegroundColor White
|
||||
}
|
||||
else {
|
||||
scoop bucket add elexis https://gitea.medelexis.ch/public/scoop
|
||||
Write-Host "elexis Bucket hinzugefügt." -ForegroundColor Green
|
||||
scoop bucket add medelexis https://gitea.medelexis.ch/public/scoop
|
||||
Write-Host "Medelexis-Bucket hinzugefügt." -ForegroundColor Green
|
||||
}
|
||||
|
||||
if ($bucketList -match "extras") {
|
||||
|
||||
Reference in new issue
Block a user