[bug-notifications] [syslog_ng 0004005]: preinstall script contains a loop bug
Mantis Bug Tracker
noreply at opencsw.org
Fri Nov 13 13:16:37 CET 2009
The following issue has been CLOSED
======================================================================
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: closed
Resolution: open
Fixed in Version:
======================================================================
Date Submitted: 2009-11-11 11:43 CET
Last Modified: 2009-11-13 13:16 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
======================================================================
----------------------------------------------------------------------
(0006981) maciej (manager) - 2009-11-13 13:16
http://www.opencsw.org/bugtrack/view.php?id=4005#c6981
----------------------------------------------------------------------
The updated package is available from mirrors.
More information about the bug-notifications
mailing list