Is it possible to call another bash script within postinst?
I am trying to call another bashscript which is inside of the debian package. Currently I do not seem to be having any luck doing this.
<postinst>
./postinst_script_2
Yes, you can call another bash script from inside your package during postinst. The postinst happens after the package is unpacked into the filesystem.
You probably can't depend on what the current directory will be when the postinst is run, though. tripleee is right; use an absolute path to call it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With