From dc0f15be4be9af665280589b686275dd10f1b5cd Mon Sep 17 00:00:00 2001 From: achi Date: Thu, 18 Jul 2024 16:00:19 +1000 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20?= =?UTF-8?q?=D0=BF=D1=80=D0=BE=D0=B2=D0=B5=D1=80=D0=BA=D1=83=20=D0=BD=D0=B0?= =?UTF-8?q?=D0=BB=D0=B8=D1=87=D0=B8=D1=8F=20systemd?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- linux/install.ps1 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/linux/install.ps1 b/linux/install.ps1 index 500078d..01fde4c 100644 --- a/linux/install.ps1 +++ b/linux/install.ps1 @@ -126,6 +126,13 @@ if ($osRelease.id -ne "redos") { exit 2; } +# Убедимся, что используется systemd +$serviceManager = (pc --no-headers -o comm 1) + +if ($serviceManager -ne "systemd") { + Write-Error "Неподдерживаемая система управления службами $serviceManager" + exit 3; +} ################################## # Определяем откуда будем загружать пакеты.