Re: Bug in cdd-update-menus
On Tue, 20 Apr 2004, Cosimo Alfarano wrote:
> you could do something like:
> --------
> source /etc/cdd/cdd.conf
> source /etc/cdd/men/med.conf # if present
> for ROLE in `getCDDRoleList med`; do
> for CDDUSER in `getUsersInRole med ${ROLE}`; do
> su ${CDDUSER} -c "update-menus"
> done
> done
> --------
I tried the following in post{inst,rm}:
source /etc/cdd/cdd.conf
if [ -s /etc/cdd/#CDD#/#CDD#.conf ] ; then source /etc/cdd/#CDD#/#CDD#.conf ; fi
if [ "${UPDATEUSERMENU}" = "yes" ] ; then
for ROLE in `getCDDRoleList #CDD#`; do
for CDDUSER in `getUsersInRole #CDD# ${ROLE}`; do
su ${CDDUSER} -c "update-menus"
done
done
fi
But infortunately this causes:
W: med-bio: possible-bashism-in-maintainer-script postinst:6 'source /etc/cdd/cdd.conf'
W: med-bio: possible-bashism-in-maintainer-script postinst:7 ' source /etc/cdd/med/med.conf'
W: med-bio: possible-bashism-in-maintainer-script postrm:6 'source /etc/cdd/cdd.conf'
W: med-bio: possible-bashism-in-maintainer-script postrm:7 ' source /etc/cdd/med/med.conf'
Any hint
Andreas.
Reply to: