From 76f7933f0d881029cea5bbe79db46f5c4687d955 Mon Sep 17 00:00:00 2001 From: TheK0tYaRa Date: Tue, 24 Feb 2026 14:58:50 +0300 Subject: [PATCH] transferred sysuser to pre part of spec --- .gear/livekit.service | 3 +-- livekit.spec | 11 ++++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.gear/livekit.service b/.gear/livekit.service index c2bfb03..f1a42a0 100644 --- a/.gear/livekit.service +++ b/.gear/livekit.service @@ -9,8 +9,7 @@ Type=simple Environment="LIVEKIT_CONFIG=/etc/livekit/livekit.yaml" -#ExecStartPre=/usr/bin/test -r ${LIVEKIT_CONFIG_FILE} -ExecStart=/usr/bin/livekit-server +ExecStart=/usr/bin/livekit User=livekit Group=livekit diff --git a/livekit.spec b/livekit.spec index 39a4ef5..00cc80a 100644 --- a/livekit.spec +++ b/livekit.spec @@ -26,7 +26,7 @@ LiveKit is an open-source, scalable multi-user WebRTC SFU (Selective Forwarding #export GOTOOLCHAIN=local #export CGO_ENABLED=0 -export GOFLAGS="-mod=vendor -trimpath" +#export GOFLAGS="-mod=vendor -trimpath" go build -buildvcs=false -o %name ./cmd/server @@ -34,16 +34,17 @@ go build -buildvcs=false -o %name ./cmd/server install -Dpm0755 %name %buildroot%_sbindir/%name install -Dpm0644 config-sample.yaml %buildroot%_sysconfdir/%name/%name.yaml install -Dpm0644 %SOURCE2 %buildroot%_unitdir/%name.service -install -Dpm0644 %SOURCE3 %buildroot%_sysusersdir/%name.conf +#install -Dpm0644 %SOURCE3 %buildroot%_sysusersdir/%name.conf + +%pre +%sysusers_create_package %name %SOURCE3 %files -#%license LICENSE -#%license NOTICE %doc README.md CHANGELOG.md NOTICE LICENSE %_sbindir/%name %config(noreplace) %_sysconfdir/%name/%name.yaml %_unitdir/%name.service -%_sysusersdir/%name.conf +#%_sysusersdir/%name.conf %changelog * Tue Feb 24 2026 Romenskiy Arseniy 1.9.11-alt1