public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Zdenek Dohnal <zdohnal@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/lprint] rawhide: fix the upgrade script, remove auth options
Date: Mon, 23 Nov 2026 17:21:06 GMT [thread overview]
Message-ID: <179545446601.1.10043853048988699873.rpms-lprint-63842aade187@fedoraproject.org> (raw)
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
reply other threads:[~2026-11-23 17:21 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179545446601.1.10043853048988699873.rpms-lprint-63842aade187@fedoraproject.org \
--to=zdohnal@redhat.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox