On Thu, 2004-06-17 at 13:48, Thomas -Balu- Walter wrote: > To do so I need the initscript to make a difference if the package is > called from postinst (don't exist with error status code) or not (exit > with error status code to allow an admin to script something e.g.).
Don't try to control the exit status with an environment variable. Let the initscript return a nonzero status. If you need to ignore the status (because you have "set -e") then append '|| :' to the line that returns the error status. $ false || : $ echo $? 0 -- Thomas