I posted this “patch” for Ubuntu servers a while back and i’ve used it multiple times without any problems. Maybe you want to check the code in there to see if something isn’t quite right in the code that you have.

[url]http://sourceforge.net/tracker/?func=detail&aid=3449766&group_id=201099&atid=976201[/url]