[bug-notifications] [alternatives 0004775]: MANUALDIR not set correctly in alternatives script
Mantis Bug Tracker
noreply at opencsw.org
Wed May 25 16:44:45 CEST 2011
The following issue has been SUBMITTED.
======================================================================
https://www.opencsw.org/mantis/view.php?id=4775
======================================================================
Reported By: jcraig
Assigned To:
======================================================================
Project: alternatives
Issue ID: 4775
Category: regular use
Reproducibility: always
Severity: major
Priority: normal
Status: new
======================================================================
Date Submitted: 2011-05-25 16:44 CEST
Last Modified: 2011-05-25 16:44 CEST
======================================================================
Summary: MANUALDIR not set correctly in alternatives script
Description:
Set to:
MANUALDIR=/etc/opt/etc/alternatives #manual override location
believe it should be:
MANUALDIR=/etc/opt/csw/etc/alternatives #manual override location
Further, this directory doesn't appear to be created my the installation
of CSWalternatives so I would further suggest changing the lines in
function set_manual_prio to create if necessary. While your at it you may
wish to protect the rm from throwing an error if it tries to remove a
non-existent check file:
$DEBUG found match for $1: $check
if [ ! -d $MANUALDIR ]; then
mkdir -p $MANUALDIR
fi
if [ -e $MANUALDIR/$1 ]; then
rm -f $MANUALDIR/$1
fi
ln -s $check $MANUALDIR/$1
set_alternative $1
}
Thanks,
Jon
======================================================================
More information about the bug-notifications
mailing list