From: Jean-Marc Pigeon (Delson) Date: Mon, 16 Jun 2025 18:41:11 +0000 (-0400) Subject: Fix script let within spec file X-Git-Tag: tag-0.9~158 X-Git-Url: https://jmp-git.ovh.safe.ca/?a=commitdiff_plain;h=1331cc97cf0fa747dc4bfc98a9b359e2b904e333;p=jmp%2Fmailleur Fix script let within spec file --- diff --git a/mailleur.spec.in b/mailleur.spec.in index 4dfb255..d0fbdee 100644 --- a/mailleur.spec.in +++ b/mailleur.spec.in @@ -49,7 +49,7 @@ if [ "$1" = 0 ]; then %{_initrddir}/${action} stop > /dev/null 2>&1 || : %{_sbindir}/chkconfig --del ${action} #removing remaining init synlink - %{__rm} %{_initrddir}/%{action} + %{__rm} %{_initrddir}/${action} done ;; * ) @@ -98,8 +98,8 @@ if [ "$1" = 1 ]; then for action in sorter do %{__ln_s} \ - %{_datadir}/%{name}/linux/$OS/%{action} \ - %{_initrddir}/%{action} + %{_datadir}/%{name}/linux/$OS/${action} \ + %{_initrddir}/${action} done ;; * ) @@ -113,8 +113,8 @@ case "$OS" in "osukiss" ) for action in sorter do - %{_sbindir}/chkconfig --add %{action} - %{_sysconfdir}/rc.d/init.d/%{actions} condrestart > /dev/null 2>&1 || : + %{_sbindir}/chkconfig --add ${action} + %{_sysconfdir}/rc.d/init.d/${actions} condrestart > /dev/null 2>&1 || : done ;; * )