Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package valkey for openSUSE:Factory checked 
in at 2024-12-08 11:36:27
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/valkey (Old)
 and      /work/SRC/openSUSE:Factory/.valkey.new.21547 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "valkey"

Sun Dec  8 11:36:27 2024 rev:10 rq:1228776 version:8.0.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/valkey/valkey.changes    2024-11-26 
20:54:47.103648338 +0100
+++ /work/SRC/openSUSE:Factory/.valkey.new.21547/valkey.changes 2024-12-08 
11:37:36.566815600 +0100
@@ -1,0 +2,7 @@
+Wed Dec  4 20:05:34 UTC 2024 - Antonio Teixeira <antonio.teixe...@suse.com>
+
+- Fix redis and sentinel units lookup in migration script (bsc#1226986)
+  * Look for units in /etc/systemd/system/redis.target.wants
+- Fix sentinel config files permissions in migration script
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ migrate_redis_to_valkey.bash ++++++
--- /var/tmp/diff_new_pack.oei4su/_old  2024-12-08 11:37:37.162840361 +0100
+++ /var/tmp/diff_new_pack.oei4su/_new  2024-12-08 11:37:37.170840693 +0100
@@ -2,8 +2,8 @@
 
 # Identify whether any config files exist
 configfiles=($(find /etc/redis -maxdepth 1 -name "*.conf"))
-redisunits=($(find /etc/systemd/system -maxdepth 1 -name "redis@*.service" 
-execdir basename {} \;))
-sentinelunits=($(find /etc/systemd/system -maxdepth 1 -name 
"redis-sentinel@*.service" -execdir basename {} \;))
+redisunits=($(find /etc/systemd/system/redis.target.wants -maxdepth 1 -name 
"redis@*.service" -execdir basename {} \;))
+sentinelunits=($(find /etc/systemd/system/redis.target.wants -maxdepth 1 -name 
"redis-sentinel@*.service" -execdir basename {} \;))
 
 if [ ${#configfiles[@]} -gt 0 ]; then
   for configfile in ${configfiles[@]}
@@ -11,6 +11,10 @@
       configfilename=$(basename "$configfile")
       cp $configfile /etc/valkey/$configfilename
       chown root:valkey /etc/valkey/$configfilename
+      if [[ $configfilename == sentinel-*.conf ]]; then
+        # Sentinel config files need to be writable by valkey group
+        chmod 660 /etc/valkey/$configfilename
+      fi
       mv $configfile ${configfile}.bak
   done
   sed -e 's|^dir\s.*|dir /var/lib/valkey|g' -i /etc/valkey/*.conf

Reply via email to