postinst is not called, but preinst

310 Views Asked by At

I am on Busybox and create my own packages. I have preinst and postinst files, preinst is called when I install the package, but postinst is not. The read and execute permissions are corretly set. I don't get an error message when I create or install the package. I inserted echo instructions into the files and I tripped the files to a minimum, but I only get the answers from preinst. Any ideas?

preinst:

#!/bin/sh

echo "in preinst"

exit 0

postinst:

#!/bin/sh

echo "in postinst"

exit 0
0

There are 0 best solutions below