From: kick_ Date: Thu, 25 Jul 2002 09:47:57 +0000 (+0000) Subject: this caused some errors during a fresh installation. It's unnecessary to call an... X-Git-Tag: v_2_9_16~24 X-Git-Url: http://www.privoxy.org/gitweb/?a=commitdiff_plain;h=75c41af60135950dd0702840868a2b56ccd8da81;p=privoxy.git this caused some errors during a fresh installation. It's unnecessary to call an extra program (/bin/true) to set the error code to 0 --- diff --git a/privoxy-rh.spec b/privoxy-rh.spec index d23de602..f5ecc6f4 100644 --- a/privoxy-rh.spec +++ b/privoxy-rh.spec @@ -1,4 +1,4 @@ -# $Id: privoxy-rh.spec,v 1.33.2.9 2002/07/05 17:16:19 morcego Exp $ +# $Id: privoxy-rh.spec,v 1.33.2.10 2002/07/12 09:14:26 kick_ Exp $ # # Written by and Copyright (C) 2001 the SourceForge # Privoxy team. http://www.privoxy.org/ @@ -206,12 +206,14 @@ fi %post # for upgrade from 2.0.x -[ -f %{_localstatedir}/log/%{oldname}/logfile ] &&\ - mv -f %{_localstatedir}/log/%{oldname}/logfile %{_localstatedir}/log/%{name}/logfile || /bin/true -[ -f %{_localstatedir}/log/%{name}/%{name} ] &&\ - mv -f %{_localstatedir}/log/%{name}/%{name} %{_localstatedir}/log/%{name}/logfile || /bin/true -chown -R %{name}:%{name} %{_localstatedir}/log/%{name} 2>/dev/null -chown -R %{name}:%{name} %{_sysconfdir}/%{name} 2>/dev/null +[ -f %{_localstatedir}/log/%{oldname}/logfile ] && { + mv -f %{_localstatedir}/log/%{oldname}/logfile %{_localstatedir}/log/%{name}/logfile ||: ; + chown -R %{name}:%{name} %{_localstatedir}/log/%{name} 2>/dev/null ||: ; +} +[ -f %{_localstatedir}/log/%{name}/%{name} ] && { + mv -f %{_localstatedir}/log/%{name}/%{name} %{_localstatedir}/log/%{name}/logfile ||: ; + chown -R %{name}:%{name} %{_sysconfdir}/%{name} 2>/dev/null ||: ; +} /sbin/chkconfig --add privoxy if [ "$1" = "1" ]; then /sbin/service %{name} condrestart > /dev/null 2>&1 @@ -714,6 +716,9 @@ fi additional "-r @" flag. # $Log: privoxy-rh.spec,v $ +# Revision 1.33.2.10 2002/07/12 09:14:26 kick_ +# don't use ghost files for rcX.d/*, chkconfig is available to do this job. Enable translation of error messge +# # Revision 1.33.2.9 2002/07/05 17:16:19 morcego # - Changing delete order for groups and users (users should be first) #