[Bug 629234] Re: package vsftpd 2.2.2-3ubuntu6 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
Imre Gergely
gimre at narancs.net
Mon Dec 13 22:19:23 GMT 2010
This was fixed in Natty but a little bit differently, see bug #656415 .
Should the fix be taken from there and SRU'd back to Maverick and Lucid
or is the above patch sufficient (or maybe even better) ?
In Natty there is this for checking if the user/group exists:
if ! getent passwd | grep -q "^${_USERNAME}:"
if ! getent group | grep -q "^${_USERNAME}:"
And in this bugreport the fix being suggested in comment #6 is using
getent to find the entry, without using grep. If nothing else, it feels
cleaner:
if ! getent passwd ${_USERNAME} >/dev/null 2>&1
if ! getent group ${_USERNAME} >/dev/null 2>&1
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to vsftpd in ubuntu.
https://bugs.launchpad.net/bugs/629234
Title:
package vsftpd 2.2.2-3ubuntu6 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
More information about the Ubuntu-server-bugs
mailing list