public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/caddy] rawhide: Generate sysusers file from within the spec file
@ 2026-06-12 21:59 Carl George
0 siblings, 0 replies; only message in thread
From: Carl George @ 2026-06-12 21:59 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/caddy
Branch : rawhide
Commit : 320e63b3cff04197d7b72a1b2b92ad394df97a50
Author : Carl George <carlwgeorge@gmail.com>
Date : 2026-06-12T16:57:25-05:00
Stats : +3/-3 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/caddy/c/320e63b3cff04197d7b72a1b2b92ad394df97a50?branch=rawhide
Log:
Generate sysusers file from within the spec file
This also drops the last field from the file, as systemd defaults to a
nologin shell if the field is missing.
[skip changelog]
---
diff --git a/caddy.spec b/caddy.spec
index f37f5f4..c83ebac 100644
--- a/caddy.spec
+++ b/caddy.spec
@@ -25,7 +25,6 @@ Source2: create-vendor-tarball.sh
Source10: Caddyfile
Source20: caddy.service
Source21: caddy-api.service
-Source22: caddy.sysusers
Source30: poweredby-white.png
Source31: poweredby-black.png
@@ -264,7 +263,9 @@ install -d -m 0755 %{buildroot}%{_sysconfdir}/caddy/Caddyfile.d
install -D -p -m 0644 -t %{buildroot}%{_unitdir} %{S:20} %{S:21}
# sysusers
-install -D -p -m 0644 %{S:22} %{buildroot}%{_sysusersdir}/caddy.conf
+cat > %{buildroot}%{_sysusersdir}/caddy.conf << EOF
+u caddy - "Caddy web server" /var/lib/caddy
+EOF
# data directory
install -d -m 0750 %{buildroot}%{_sharedstatedir}/caddy
diff --git a/caddy.sysusers b/caddy.sysusers
deleted file mode 100644
index 3e98c73..0000000
--- a/caddy.sysusers
+++ /dev/null
@@ -1 +0,0 @@
-u caddy - "Caddy web server" /var/lib/caddy /usr/sbin/nologin
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-12 21:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-12 21:59 [rpms/caddy] rawhide: Generate sysusers file from within the spec file Carl George
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox