transferred sysuser to pre part of spec

This commit is contained in:
TheK0tYaRa 2026-02-24 14:58:50 +03:00
parent 70b38b36fe
commit 76f7933f0d
2 changed files with 7 additions and 7 deletions

View file

@ -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

View file

@ -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 <romenskiy2012@altlinux.org> 1.9.11-alt1