[bug-notifications] [syslog_ng 0004005]: preinstall script contains a loop bug

Mantis Bug Tracker noreply at opencsw.org
Fri Nov 13 13:15:51 CET 2009


The following issue has been ASSIGNED. 
====================================================================== 
http://www.opencsw.org/bugtrack/view.php?id=4005 
====================================================================== 
Reported By:                japester
Assigned To:                maciej
====================================================================== 
Project:                    syslog_ng
Issue ID:                   4005
Category:                   packaging
Reproducibility:            always
Severity:                   trivial
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             2009-11-11 11:43 CET
Last Modified:              2009-11-13 13:15 CET
====================================================================== 
Summary:                    preinstall script contains a loop bug
Description: 
the preinstall script exits with 'line 16, fi expected'.

one line 12, there is a 'then' missing from the end of the line, which
completes the for loop.


#!/bin/sh

if [ -x /usr/sbin/svcadm ]; then
  echo "Disabling svc:/system/system-log:default"
  # /usr/sbin/svcadm disable svc:/system/system-log:default
fi

# The assumption is that this script is going to be run from the global
zone
# first. The -f option is for the rm command not to complain if it can't
remove
# the file.
for f in /opt/csw/var/syslog-ng.{ctl,persist}; do
  if [ -r "${f}" ];
    echo "Removing an obsolete file: '${f}'."
    rm -f "${f}"
  fi
done

====================================================================== 

---------------------------------------------------------------------- 
 (0006969) maciej (manager) - 2009-11-11 12:11
 http://www.opencsw.org/bugtrack/view.php?id=4005#c6969 
---------------------------------------------------------------------- 
Updated package (REV=2009.11.11) is in testing/.




More information about the bug-notifications mailing list