transferred sysuser to pre part of spec
This commit is contained in:
parent
70b38b36fe
commit
76f7933f0d
2 changed files with 7 additions and 7 deletions
|
|
@ -9,8 +9,7 @@ Type=simple
|
||||||
|
|
||||||
Environment="LIVEKIT_CONFIG=/etc/livekit/livekit.yaml"
|
Environment="LIVEKIT_CONFIG=/etc/livekit/livekit.yaml"
|
||||||
|
|
||||||
#ExecStartPre=/usr/bin/test -r ${LIVEKIT_CONFIG_FILE}
|
ExecStart=/usr/bin/livekit
|
||||||
ExecStart=/usr/bin/livekit-server
|
|
||||||
|
|
||||||
User=livekit
|
User=livekit
|
||||||
Group=livekit
|
Group=livekit
|
||||||
|
|
|
||||||
11
livekit.spec
11
livekit.spec
|
|
@ -26,7 +26,7 @@ LiveKit is an open-source, scalable multi-user WebRTC SFU (Selective Forwarding
|
||||||
#export GOTOOLCHAIN=local
|
#export GOTOOLCHAIN=local
|
||||||
#export CGO_ENABLED=0
|
#export CGO_ENABLED=0
|
||||||
|
|
||||||
export GOFLAGS="-mod=vendor -trimpath"
|
#export GOFLAGS="-mod=vendor -trimpath"
|
||||||
|
|
||||||
go build -buildvcs=false -o %name ./cmd/server
|
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 -Dpm0755 %name %buildroot%_sbindir/%name
|
||||||
install -Dpm0644 config-sample.yaml %buildroot%_sysconfdir/%name/%name.yaml
|
install -Dpm0644 config-sample.yaml %buildroot%_sysconfdir/%name/%name.yaml
|
||||||
install -Dpm0644 %SOURCE2 %buildroot%_unitdir/%name.service
|
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
|
%files
|
||||||
#%license LICENSE
|
|
||||||
#%license NOTICE
|
|
||||||
%doc README.md CHANGELOG.md NOTICE LICENSE
|
%doc README.md CHANGELOG.md NOTICE LICENSE
|
||||||
%_sbindir/%name
|
%_sbindir/%name
|
||||||
%config(noreplace) %_sysconfdir/%name/%name.yaml
|
%config(noreplace) %_sysconfdir/%name/%name.yaml
|
||||||
%_unitdir/%name.service
|
%_unitdir/%name.service
|
||||||
%_sysusersdir/%name.conf
|
#%_sysusersdir/%name.conf
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Tue Feb 24 2026 Romenskiy Arseniy <romenskiy2012@altlinux.org> 1.9.11-alt1
|
* Tue Feb 24 2026 Romenskiy Arseniy <romenskiy2012@altlinux.org> 1.9.11-alt1
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue