From fc4545c02613aa6fa82def2270b686f4a80ba338 Mon Sep 17 00:00:00 2001 From: achi Date: Thu, 18 Jul 2024 16:01:01 +1000 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D0=BB=20=D0=BF=D1=80=D0=BE=D0=B2=D0=B5=D1=80=D0=BA=D1=83=20?= =?UTF-8?q?=D0=9E=D0=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- linux/install.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linux/install.ps1 b/linux/install.ps1 index 01fde4c..dc00c2f 100644 --- a/linux/install.ps1 +++ b/linux/install.ps1 @@ -121,13 +121,13 @@ if ($PSVersionTable.Platform -eq "Unix") { $osRelease = Get-OsRelease -if ($osRelease.id -ne "redos") { +if ($osRelease.ID -ne "`"redos`"") { Write-Error "Неподдерживаемая операционная система $($osRelease.ID) ($($osRelease.NAME))" exit 2; } # Убедимся, что используется systemd -$serviceManager = (pc --no-headers -o comm 1) +$serviceManager = (ps --no-headers -o comm 1) if ($serviceManager -ne "systemd") { Write-Error "Неподдерживаемая система управления службами $serviceManager"