View Single Post
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#22
Originally Posted by b0unc3 View Post
Yes, I can confirm it too
That's due to a wrong sed command in the prerm script.
You need to manually fix it before upgrading or uninstalling wizard-mounter.
Follow the howto on prerm on this page :
https://garage.maemo.org/frs/?group_id=444

In brief:
1. download the new prerm script on the link upper
2. copy the new prerm script (wizard-mounter.prerm) to /var/lib/dpkg/info/wizard-mounter.prerm
3. You're done.


I'm sorry for the troubles
Why are you using sed to do this? Maemo provides update-sudoers for a reason.

Put the content that you'd like to have in sudoers into a file called "wizard-mounter.sudoers" and install that file to /etc/sudoers.d/ as part of your package. In the postinst and postrm, just run "update-sudoers".
If your wizard-mounter.sudoers file is dodgy, update-sudoers doesn't update /etc/sudoers as opposed to just ruining it. Which is what is happening currently with your sed method. Simple as that.

Last edited by qwerty12; 2010-02-13 at 15:26.
 

The Following 6 Users Say Thank You to qwerty12 For This Useful Post: