Hello community,

here is the log from the commit of package nut for openSUSE:Factory checked in 
at 2020-02-26 15:05:48
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/nut (Old)
 and      /work/SRC/openSUSE:Factory/.nut.new.26092 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "nut"

Wed Feb 26 15:05:48 2020 rev:66 rq:779298 version:2.7.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/nut/nut.changes  2019-07-24 20:50:52.338448738 
+0200
+++ /work/SRC/openSUSE:Factory/.nut.new.26092/nut.changes       2020-02-26 
15:06:01.377308085 +0100
@@ -1,0 +2,6 @@
+Tue Feb 25 20:40:40 CET 2020 - [email protected]
+
+- Remove obsolete chown from %post. We no more support upgrade from
+  SUSE Linux 9 (bsc#1157325).
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ nut.spec ++++++
--- /var/tmp/diff_new_pack.YgvObQ/_old  2020-02-26 15:06:02.573310471 +0100
+++ /var/tmp/diff_new_pack.YgvObQ/_new  2020-02-26 15:06:02.577310480 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package nut
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -39,7 +39,7 @@
 Summary:        Network UPS Tools Core (Uninterruptible Power Supply 
Monitoring)
 License:        GPL-2.0-or-later
 Group:          Hardware/UPS
-Url:            http://www.networkupstools.org/
+URL:            http://www.networkupstools.org/
 Source:         
http://www.networkupstools.org/source/2.7/%{name}-%{version}.tar.gz
 Source2:        README.SUSE
 Source6:        nut.system-sleep
@@ -245,8 +245,6 @@
 %service_add_pre nut-driver.service nut-server.service nut-monitor.service
 
 %post
-# Be sure that all files are owned by a dedicated user.
-chown -R %{NUT_USER}:%{NUT_GROUP} %{STATEPATH}
 # Generate initial passwords.
 if grep -q "password = @UPSD_INITIAL_MASTER_PASSWORD@" %{CONFPATH}/upsmon.conf 
%{CONFPATH}/upsd.users; then
   UPSD_INITIAL_MASTER_PASSWORD=$(head -c 20 /dev/urandom | md5sum | head -c 10)
@@ -256,9 +254,6 @@
   UPSD_INITIAL_SLAVE_PASSWORD=$(head -c 20 /dev/urandom | md5sum | head -c 10)
   sed -i s/@UPSD_INITIAL_SLAVE_PASSWORD@/$UPSD_INITIAL_SLAVE_PASSWORD/ 
%{CONFPATH}/upsd.users
 fi
-# Be sure that all files are owned by a dedicated user.
-chown %{NUT_USER}:root %{CONFPATH}/upsd.conf %{CONFPATH}/upsmon.conf 
%{CONFPATH}/upsd.users
-chmod 600 %{CONFPATH}/upsd.conf %{CONFPATH}/upsmon.conf %{CONFPATH}/upsd.users
 # Migrate Suspend to Disc to the new convention (bnc#449861 and later 
bnc#871406):
 # It was never on by default, but documentation up to 11.0 recommends
 # "shutdown -z +0" for suspend to disc. It was discontinued before 11.0.



Reply via email to