corrected install errors, made spec more readable

This commit is contained in:
TheK0tYaRa 2026-02-24 15:15:34 +03:00
parent 76f7933f0d
commit 4c780729e3
2 changed files with 10 additions and 10 deletions

View file

@ -9,7 +9,7 @@ Type=simple
Environment="LIVEKIT_CONFIG=/etc/livekit/livekit.yaml" Environment="LIVEKIT_CONFIG=/etc/livekit/livekit.yaml"
ExecStart=/usr/bin/livekit ExecStart=/usr/sbin/livekit
User=livekit User=livekit
Group=livekit Group=livekit

View file

@ -31,20 +31,20 @@ LiveKit is an open-source, scalable multi-user WebRTC SFU (Selective Forwarding
go build -buildvcs=false -o %name ./cmd/server go build -buildvcs=false -o %name ./cmd/server
%install %install
install -Dpm0755 %name %buildroot%_sbindir/%name install -Dpm0755 livekit %buildroot%_sbindir/livekit
install -Dpm0644 config-sample.yaml %buildroot%_sysconfdir/%name/%name.yaml install -Dpm0644 config-sample.yaml %buildroot%_sysconfdir/livekit/livekit.yaml
install -Dpm0644 %SOURCE2 %buildroot%_unitdir/%name.service install -Dpm0644 %SOURCE2 %buildroot%_unitdir/livekit.service
#install -Dpm0644 %SOURCE3 %buildroot%_sysusersdir/%name.conf #install -Dpm0644 %SOURCE3 %buildroot%_sysusersdir/livekit.conf
%pre %pre
%sysusers_create_package %name %SOURCE3 %sysusers_create_package livekit %SOURCE3
%files %files
%doc README.md CHANGELOG.md NOTICE LICENSE %doc README.md CHANGELOG.md NOTICE LICENSE
%_sbindir/%name %_sbindir/livekit
%config(noreplace) %_sysconfdir/%name/%name.yaml %config(noreplace) %_sysconfdir/livekit/livekit.yaml
%_unitdir/%name.service %_unitdir/livekit.service
#%_sysusersdir/%name.conf #%_sysusersdir/livekit.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