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

Mantis Bug Tracker noreply at opencsw.org
Wed Nov 11 11:43:23 CET 2009


The following issue has been SUBMITTED. 
====================================================================== 
http://www.opencsw.org/bugtrack/view.php?id=4005 
====================================================================== 
Reported By:                japester
Assigned To:                
====================================================================== 
Project:                    syslog_ng
Issue ID:                   4005
Category:                   packaging
Reproducibility:            always
Severity:                   trivial
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2009-11-11 11:43 CET
Last Modified:              2009-11-11 11:43 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

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




More information about the bug-notifications mailing list