public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/lprint] rawhide: fix the upgrade script, remove auth options
@ 2026-11-23 17:21 Zdenek Dohnal
0 siblings, 0 replies; only message in thread
From: Zdenek Dohnal @ 2026-11-23 17:21 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/lprint
Branch : rawhide
Commit : 63842aade18702477ad5cac191bdf5c7b370fdb4
Author : Zdenek Dohnal <zdohnal@redhat.com>
Date : 2026-11-23T18:20:59+01:00
Stats : +18/-25 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/lprint/c/63842aade18702477ad5cac191bdf5c7b370fdb4?branch=rawhide
Log:
fix the upgrade script, remove auth options
---
diff --git a/lprint.conf b/lprint.conf
index 9b60902..31433f9 100644
--- a/lprint.conf
+++ b/lprint.conf
@@ -14,11 +14,5 @@ server-port=8000
# default log level - info, available levels: fatal, error, warn, info, debug
log-level=info
-# use PAM for cups
-auth-service=cups
-
-# set auth group for root to authenticate when adding printer
-auth-group=root
-
# listen only on localhost
listen-hostname=localhost
diff --git a/lprint.spec b/lprint.spec
index b5e784f..e2b61d6 100644
--- a/lprint.spec
+++ b/lprint.spec
@@ -3,7 +3,7 @@
Name: lprint
Version: 1.3.1
-Release: 14%{?dist}
+Release: 15%{?dist}
Summary: A Label Printer Application
License: Apache-2.0
@@ -80,40 +80,36 @@ cat > %{buildroot}%{_libexecdir}/%{name}/posttrans.sh << 'SCRIPT'
# upgrade script for adding new options into existing lprint.conf
# runs once on upgrade via lprint-conf-upgrade.service
-conf=/etc/lprint.conf
+conf="/etc/lprint.conf"
-if test ! -f "$conf"
+if test ! -f \$conf
then
exit 0
fi
-# add auth-service if missing
-if ! grep -q "^auth-service=" "$conf"
+# remove auth-service
+if grep -q "^auth-service=cups" \$conf
then
- echo "" >> "$conf"
- echo "# use PAM for cups" >> "$conf"
- echo "auth-service=cups" >> "$conf"
+ sed -i '/auth-service=cups/d' \$conf
fi
-# add auth-group if missing
-if ! grep -q "^auth-group=" "$conf"
+# remove auth-group
+if grep -q "^auth-group=root" \$conf
then
- echo "" >> "$conf"
- echo "# set auth group for root to authenticate when adding printer" >> "$conf"
- echo "auth-group=root" >> "$conf"
+ sed -i '/auth-group=root/d' \$conf
fi
# add listen-hostname if missing
-if ! grep -q "^listen-hostname=" "$conf"
+if ! grep -q "^listen-hostname=" \$conf
then
- echo "" >> "$conf"
- echo "# listen only on localhost" >> "$conf"
- echo "listen-hostname=localhost" >> "$conf"
+ echo "" >> \$conf
+ echo "# listen only on localhost" >> \$conf
+ echo "listen-hostname=localhost" >> \$conf
fi
# mark as upgraded so lprint-conf-upgrade.service won't run again
-echo "" >> "$conf"
-echo "# added in version 1.3.1-14" >> "$conf"
+echo "" >> \$conf
+echo "# added in version 1.3.1-15" >> \$conf
exit 0
SCRIPT
@@ -222,6 +218,9 @@ fi
%changelog
+* Mon Nov 23 2026 Zdenek Dohnal <zdohnal@redhat.com> - 1.3.1-15
+- fix the upgrade script, remove auth options
+
* Fri Sep 04 2026 Zdenek Dohnal <zdohnal@redhat.com> - 1.3.1-14
- Added more default options
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-23 17:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-23 17:21 [rpms/lprint] rawhide: fix the upgrade script, remove auth options Zdenek Dohnal
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox