]> SAFE projects GIT repository - jmp/mailleur/commitdiff
spec file posttrans problem found
authorJean-Marc Pigeon <jmp@safe.c>
Thu, 13 Nov 2025 20:27:09 +0000 (15:27 -0500)
committerJean-Marc Pigeon <jmp@safe.c>
Thu, 13 Nov 2025 20:27:09 +0000 (15:27 -0500)
mailleur.spec.in

index e07b0fa8d1db68a61fbf54dc2a801ea10090e9a3..57a2e0f2224e3151364a8598404efda0b6fd654a 100644 (file)
@@ -172,7 +172,15 @@ if [ "$1" = 1 ]; then
   fi
 
 %posttrans
-%{_sysconfdir}/rc.d/init.d/dovecot restart > /dev/null 2>&1 || :
+OS=`%{_libdir}/%{name}/shell/getsysos.sh`
+case "$OS" in
+  "sysv"       |                               \
+  "osukiss"    )
+    %{_sysconfdir}/rc.d/init.d/dovecot restart > /dev/null 2>&1 || :
+    ;;
+  *            )
+    ;;
+  esac
 
 #=============================================================================
 %package               devel
@@ -271,6 +279,7 @@ if [ "$1" = 0 ]; then
   fi
 
 %posttrans             postgresql
+OS=`%{_libdir}/%{name}/shell/getsysos.sh`
 case "$OS" in
   "sysv"       |                               \
   "osukiss"    )
@@ -355,6 +364,7 @@ if [ "$1" = 0 ]; then
   fi
 
 %posttrans     mysql
+OS=`%{_libdir}/%{name}/shell/getsysos.sh`
 case "$OS" in
   "sysv"       |                               \
   "osukiss"    )