oscar-cluster / oscar

OSCAR main source repository.
GNU General Public License v2.0
13 stars 2 forks source link

loghost RPM failed to be erased on SUSE Linux 10.0 #243

Open dikim33 opened 7 years ago

dikim33 commented 7 years ago

Reported by bli on 3 Aug 2006 04:59 UTC During ./start_over --yes, I noticed:

error: %preun(loghost-1.0-1) scriptlet failed, exit status 127

And %preun looks like:

preuninstall scriptlet (through /bin/sh):
. /etc/sysconfig/syslog
rm_option="-r"
for option in $SYSLOGD_OPTIONS; do
  if [ "$option" != "$rm_option" ]; then
    if [ -z $new_options ] ; then
      new_options="$option"
    else
      new_options="$new_options $option"
    fi
  fi
done

cat /etc/sysconfig/syslog |sed "s/SYSLOGD_OPTIONS=.*$/SYSLOGD_OPTIONS=\"$new_options\"/g" > /tmp/loghost.tmp
/bin/mv -f /tmp/loghost.tmp /etc/sysconfig/syslog
/sbin/service syslog restart 2> /dev/null > /dev/null

Culprit is probably the last line: /sbin/service.

Not critical enough for 5.0, but should probably be fixed in trunk for 5.1.

dikim33 commented 7 years ago

Modified by jparpail on 11 Apr 2007 09:33 UTC

dikim33 commented 7 years ago

Modified by valleegr on 30 Jun 2008 06:51 UTC