[Bug 979758] Re: package fails to configure on failing to find /etc/init.d/nis
Alex Bennee
bugzilla at bennee.com
Thu Apr 12 10:40:43 UTC 2012
I suspect the invoke-rc.d line needs to be wrapped in the -e part of the
of the check?
The current preinst code looks like:
# Manually remove the nis init script, which has to be split into per-daemon
# upstart jobs
if dpkg --compare-versions "$2" lt-nl 3.17-32ubuntu1.1
then
# since this isn't stopped on upgrade, we have to stop it now
# so we don't leave orphaned processes running
invoke-rc.d nis stop
if [ -e "/etc/init.d/nis" ] && [ ! -L "/etc/init.d/nis" ]; then
if [ "`md5sum \"/etc/init.d/nis\" | sed -e \"s/ .*//\"`" != \
"`dpkg-query -W -f='${Conffiles}' nis | sed -n -e \"\\\\' /etc/init.d/nis '{s/ obsolete$//;s/.* //p}\"`" ]
then
echo "Obsolete conffile /etc/init.d/nis has been modified by you, renaming to .dpkg-bak"
mv -f "/etc/init.d/nis" "/etc/init.d/nis.dpkg-bak"
else
rm -f "/etc/init.d/nis"
fi
fi
update-rc.d nis remove
fi
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to nis in Ubuntu.
https://bugs.launchpad.net/bugs/979758
Title:
package fails to configure on failing to find /etc/init.d/nis
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nis/+bug/979758/+subscriptions
More information about the Ubuntu-server-bugs
mailing list