public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
* [PATCH v2] Core Update 165: Rename squid-accounting add-on to proxy-accounting
@ 2022-03-05 14:45 Peter Müller
  2022-03-05 20:40 ` Adolf Belka
  0 siblings, 1 reply; 8+ messages in thread
From: Peter Müller @ 2022-03-05 14:45 UTC (permalink / raw)
  To: development

[-- Attachment #1: Type: text/plain, Size: 1390 bytes --]

https://lists.ipfire.org/pipermail/development/2022-February/012482.html

The second version of this patch omits bogus directives for restarting a
service, which proxy-accounting is not.

Cc: Michael Tremer <michael.tremer(a)ipfire.org>
Cc: Adolf Belka <adolf.belka(a)ipfire.org>
Signed-off-by: Peter Müller <peter.mueller(a)ipfire.org>
---
 config/rootfiles/core/165/update.sh | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/config/rootfiles/core/165/update.sh b/config/rootfiles/core/165/update.sh
index fe4449fff..f505628e4 100644
--- a/config/rootfiles/core/165/update.sh
+++ b/config/rootfiles/core/165/update.sh
@@ -97,6 +97,14 @@ rm -rvf \
 	/var/ipfire/dhcpc/dhcpcd-hooks/10-mtu \
 	/var/ipfire/firewall/p2protocols
 
+# Rename squid-accounting add-on to proxy-accounting, if installed
+# (see: https://lists.ipfire.org/pipermail/development/2022-February/012482.html)
+if [ -e "/opt/pakfire/db/installed/meta-squid-accounting" ] && [ -e "/opt/pakfire/db/meta/meta-squid-accounting" ]; then
+	mv -v /opt/pakfire/db/installed/meta-squid-accounting /opt/pakfire/db/installed/meta-proxy-accounting
+	mv -v /opt/pakfire/db/meta/meta-squid-accounting /opt/pakfire/db/meta/meta-proxy-accounting
+	mv -v /opt/pakfire/db/rootfiles/squid-accounting /opt/pakfire/db/rootfiles/proxy-accounting
+fi
+
 # Stop services
 
 # Extract files
-- 
2.34.1

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-03-19 15:13 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-05 14:45 [PATCH v2] Core Update 165: Rename squid-accounting add-on to proxy-accounting Peter Müller
2022-03-05 20:40 ` Adolf Belka
2022-03-18 13:46   ` Adolf Belka
2022-03-19 13:09     ` Adolf Belka
2022-03-19 13:27       ` Matthias Fischer
2022-03-19 14:04         ` Adolf Belka
2022-03-19 14:18           ` Adolf Belka
2022-03-19 15:13             ` Adolf Belka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox