From: Jean-Marc Pigeon Date: Thu, 13 Nov 2025 20:16:08 +0000 (-0500) Subject: Using postrans to satrt dovecot and postgresql X-Git-Tag: tag-0.17~46 X-Git-Url: https://jmp-git.ovh.safe.ca/?a=commitdiff_plain;h=aa7185e18c79d7e2846c9e6dc08fc955f26ed593;p=jmp%2Fmailleur Using postrans to satrt dovecot and postgresql --- diff --git a/mailleur.spec.in b/mailleur.spec.in index d3cafb6..096b3c6 100644 --- a/mailleur.spec.in +++ b/mailleur.spec.in @@ -270,6 +270,15 @@ if [ "$1" = 0 ]; then rm -f %{_sbindir}/sorter fi +%posttrans postgresql +case "$OS" in + "sysv" | \ + "osukiss" ) + %{_sysconfdir}/rc.d/init.d/postgresql condrestart > /dev/null 2>&1 || : + ;; + * ) + ;; + esac #============================================================================= %package mysql Summary : mailleur using mysql/mariadb as Data-base @@ -343,6 +352,16 @@ if [ "$1" = 0 ]; then rm -f %{_sbindir}/sorter fi +%posttrans mysql +case "$OS" in + "sysv" | \ + "osukiss" ) + %{_sysconfdir}/rc.d/init.d/mysqld condrestart > /dev/null 2>&1 || : + ;; + * ) + ;; + esac + #============================================================================= %prep %setup -q