jordansissel/fpm — Issue #158: Can't get --pre-install and post-install to work
Author: astrostl
Created: 2012-02-20 17:31:46+00:00
State: open

Dev system: CentOS release 6.2 (Final) x64

I have a couple of shell scripts I'd like to roll into an RPM. They run as expected when invoked manually.

fpm -s dir -t rpm --pre-install "$prescript" --post-install "$postscript" -n openntpd -v "$version" -C /tmp/installdir -p openntpd-VERSION_ARCH.rpm

They have 755 permissions. I've tried them with and without .sh extensions, with and without absolute pathing, and at different specified areas in the fpm argument list. When I install the package, I don't get the intended results (a user and group added). When I extract the RPM with rpm2cpio, the scripts aren't present. Any tips?